Gateway Order Request

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

On this page you will find the information needed to complete the exercise.
 
Should you have any questions, please contact academy@emagiz.com.

1. XSD

Below, the information for the Gateway Order Request, needed for the exercise, is provided.

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="Order">
<xs:sequence>
<xs:element minOccurs="0" name="ID" type="nonEmptyString"/>
<xs:element name="Type" type="nonEmptyString"/>
<xs:element minOccurs="0" name="Description" type="nonEmptyString"/>
<xs:element name="Value" type="xs:decimal"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="OrderLine" type="OrderLine"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="OrderLine">
<xs:sequence>
<xs:element minOccurs="0" name="Description" type="nonEmptyString"/>
<xs:element name="Value" type="xs:decimal"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="nonEmptyString">
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="Order" type="Order"/>
</xs:schema>