Wiki source code of Gateway Order Request

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

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 Gateway Order Request, needed for the exercise, is provided.
9
10 {{code language="xml"}}<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
11 <xs:complexType name="Order">
12 <xs:sequence>
13 <xs:element minOccurs="0" name="ID" type="nonEmptyString"/>
14 <xs:element name="Type" type="nonEmptyString"/>
15 <xs:element minOccurs="0" name="Description" type="nonEmptyString"/>
16 <xs:element name="Value" type="xs:decimal"/>
17 <xs:element maxOccurs="unbounded" minOccurs="0" name="OrderLine" type="OrderLine"/>
18 </xs:sequence>
19 </xs:complexType>
20 <xs:complexType name="OrderLine">
21 <xs:sequence>
22 <xs:element minOccurs="0" name="Description" type="nonEmptyString"/>
23 <xs:element name="Value" type="xs:decimal"/>
24 </xs:sequence>
25 </xs:complexType>
26 <xs:simpleType name="nonEmptyString">
27 <xs:restriction base="xs:string">
28 <xs:minLength value="1"/>
29 </xs:restriction>
30 </xs:simpleType>
31 <xs:element name="Order" type="Order"/>
32 </xs:schema>{{/code}}
33
34 )))((({{toc/}}))){{/container}}{{/container}}