Input Message Definition
Last modified by Eva Torken on 2024/03/19 14:26
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 input message definition, needed for the exercise, is provided.
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="transport_order">
<xs:sequence>
<xs:element name="transport_order_id" type="nonEmptyString"/>
<xs:element name="transport_order_description" type="nonEmptyString"/>
<xs:element name="transport_order_sender_id" type="nonEmptyString"/>
<xs:element name="transport_order_sender_name" type="nonEmptyString"/>
<xs:element name="transport_order_sender_address" type="nonEmptyString"/>
<xs:element name="transport_order_receiver_id" type="nonEmptyString"/>
<xs:element name="transport_order_receiver_name" type="nonEmptyString"/>
<xs:element name="transport_order_receiver_address" type="nonEmptyString"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="nonEmptyString">
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="transport_order" type="transport_order"/>
</xs:schema>
<xs:complexType name="transport_order">
<xs:sequence>
<xs:element name="transport_order_id" type="nonEmptyString"/>
<xs:element name="transport_order_description" type="nonEmptyString"/>
<xs:element name="transport_order_sender_id" type="nonEmptyString"/>
<xs:element name="transport_order_sender_name" type="nonEmptyString"/>
<xs:element name="transport_order_sender_address" type="nonEmptyString"/>
<xs:element name="transport_order_receiver_id" type="nonEmptyString"/>
<xs:element name="transport_order_receiver_name" type="nonEmptyString"/>
<xs:element name="transport_order_receiver_address" type="nonEmptyString"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="nonEmptyString">
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="transport_order" type="transport_order"/>
</xs:schema>