Wiki source code of Order Definition CAPE

Last modified by Eva Torken on 2024/03/19 14:23

Show last authors
1 {{container}}{{container layoutStyle="columns"}}(((
2 On this page you will find the information needed to complete the exercise.
3
4 Should you have any questions, please contact [[academy@emagiz.com>>mailto:academy@emagiz.com]].
5
6 === 1. XSD ===
7
8 Below, the information for the order definition of CAPE, needed for the exercise, is provided.
9
10 {{code language="xml"}}<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="https://www.emagiz-crash-course-platform-demo.nl/ns/ccpexer-bus/customer-order/1.0/" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="https://www.emagiz-crash-course-platform-demo.nl/ns/ccpexer-bus/customer-order/1.0/">
11 <xsd:element name="Order">
12 <xsd:complexType>
13 <xsd:sequence>
14 <xsd:element name="Customer">
15 <xsd:complexType>
16 <xsd:sequence>
17 <xsd:element name="Name" type="xsd:string"/>
18 <xsd:element name="Email" type="xsd:string"/>
19 </xsd:sequence>
20 </xsd:complexType>
21 </xsd:element>
22 <xsd:element name="Date" type="xsd:dateTime"/>
23 <xsd:element name="OrderId" type="xsd:string"/>
24 <xsd:element name="PickupAddress">
25 <xsd:complexType>
26 <xsd:sequence>
27 <xsd:element name="Name" type="xsd:string"/>
28 <xsd:element name="Street" type="xsd:string"/>
29 <xsd:element name="StreetNumber" type="xsd:string"/>
30 <xsd:element name="PostalCode" type="xsd:string"/>
31 <xsd:element name="City" type="xsd:string"/>
32 <xsd:element name="Country" type="xsd:string"/>
33 </xsd:sequence>
34 </xsd:complexType>
35 </xsd:element>
36 <xsd:element name="DeliveryAddress">
37 <xsd:complexType>
38 <xsd:sequence>
39 <xsd:element name="Name" type="xsd:string"/>
40 <xsd:element name="Street" type="xsd:string"/>
41 <xsd:element name="StreetNumber" type="xsd:string"/>
42 <xsd:element name="PostalCode" type="xsd:string"/>
43 <xsd:element name="City" type="xsd:string"/>
44 <xsd:element name="Country" type="xsd:string"/>
45 </xsd:sequence>
46 </xsd:complexType>
47 </xsd:element>
48 <xsd:element name="OrderLine" maxOccurs="unbounded">
49 <xsd:complexType>
50 <xsd:sequence>
51 <xsd:element name="PackageUnit" type="xsd:string"/>
52 <xsd:element name="Quantity" type="xsd:int"/>
53 <xsd:element name="Description" type="xsd:string"/>
54 <xsd:element name="Weight" type="xsd:double"/>
55 </xsd:sequence>
56 </xsd:complexType>
57 </xsd:element>
58 </xsd:sequence>
59 </xsd:complexType>
60 </xsd:element>
61 </xsd:schema>{{/code}}
62
63 )))((({{toc/}}))){{/container}}{{/container}}