Output 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 output message definition, needed for the exercise, is provided.
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.dftrain.com/ns/dftrain/cdm/1.0/" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.dftrain.com/ns/dftrain/cdm/1.0/">
<xs:complexType name="TransportOrder">
<xs:sequence>
<xs:element name="id" type="nonEmptyString"/>
<xs:element name="description" type="nonEmptyString"/>
<xs:element maxOccurs="unbounded" name="Actor" type="Actor"/>
<xs:element maxOccurs="unbounded" name="Location" type="Location"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Actor">
<xs:sequence>
<xs:element name="id" type="nonEmptyString"/>
<xs:element name="name" type="nonEmptyString"/>
<xs:element name="role" type="nonEmptyString"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Location">
<xs:sequence>
<xs:element name="id" type="nonEmptyString"/>
<xs:element name="name" type="nonEmptyString"/>
<xs:element name="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="TransportOrder" type="TransportOrder"/>
</xs:schema>
<xs:complexType name="TransportOrder">
<xs:sequence>
<xs:element name="id" type="nonEmptyString"/>
<xs:element name="description" type="nonEmptyString"/>
<xs:element maxOccurs="unbounded" name="Actor" type="Actor"/>
<xs:element maxOccurs="unbounded" name="Location" type="Location"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Actor">
<xs:sequence>
<xs:element name="id" type="nonEmptyString"/>
<xs:element name="name" type="nonEmptyString"/>
<xs:element name="role" type="nonEmptyString"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Location">
<xs:sequence>
<xs:element name="id" type="nonEmptyString"/>
<xs:element name="name" type="nonEmptyString"/>
<xs:element name="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="TransportOrder" type="TransportOrder"/>
</xs:schema>