<xs:enumeration value="LOA"/>
 <xs:enumeration value="SMA"/>
 <xs:enumeration value="CND"/>
 <xs:enumeration value="WOC"/>
 <xs:enumeration value="MOV"/>
 <xs:enumeration value="NMV"/>
 </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="direction_code_enum">
 <xs:restriction base="xs:string">
 <xs:maxLength value="3"/>
 <xs:enumeration value="ALL"/>
 <xs:enumeration value="UPS"/>
 <xs:enumeration value="DWN"/>
 </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="unit_enum">
 <xs:restriction base="xs:string">
 <xs:maxLength value="4"/>
 <xs:enumeration value="cm"/>
 <xs:enumeration value="m3/s"/>
 <xs:enumeration value="h"/>
 <xs:enumeration value="km/h"/>
 <xs:enumeration value="kW"/>
 <xs:enumeration value="m/s"/>
 <xs:enumeration value="mm/h"/>
 <xs:enumeration value="°C"/>
 </xs:restriction>
 </xs:simpleType>
 </xs:schema>
 Appendix D
 <?xml version="1.0" encoding="UTF-8"?>
 <wsdl:definitions
 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
 xmlns:http=
 "http://schemas.xmlsoap.org/wsdl/http/"
 xmlns:xs=
 "http://www.w3.org/2001/XMLSchema"
 xmlns:soapenc=
 "http://schemas.xmlsoap.org/soap/encoding/"
 xmlns:mime=
 "http://schemas.xmlsoap.org/wsdl/mime/"
 xmlns:nts=
 "http://www.ris.eu/nts/4.0.4.0"
 xmlns:tns=
 "http://www.ris.eu/nts.ms/2.0.4.0"
 targetNamespace=
 "http://www.ris.eu/nts.ms/2.0.4.0"
 name="NtS-Message-Service">
 <!--
 = specification of types =
 -->
 <wsdl:types>
 <!--
 = xml-schema for types =
 -->
 <xs:schema
 targetNamespace="http://www.ris.eu/nts.ms/2.0.4.0"
 xmlns:xs="http://www.w3.org/2001/XMLSchema"
 xmlns:nts=
 "http://www.ris.eu/nts/4.0.4.0"
 xmlns:nts-ms=
 "http://www.ris.eu/nts.ms/2.0.4.0"
 elementFormDefault="qualified"
 attributeFormDefault="unqualified"
 version="2.0.4.0">
 <!-- import NtS schema -->
 <xs:import
 namespace="http://www.ris.eu/nts/4.0.4.0"
 schemaLocation="http://
 www.ris.eu/nts/4.0/NtS_XSD_V.4.0.4.0.xsd"
 />
 <!-- query with filters, parameters according to the NtS standard -->
 <xs:element name="get_messages_query">
 <xs:complexType>
 <xs:sequence>
 <!-- type of message (FTM, WRM, ICEM, WERM) -->
 <xs:element name="message_type" type="nts-ms:message_type_type"/>
 <!-- ISRS codes for fairway sections or objects -->
 <xs:element name="ids" type="nts-ms:id_pair" minOccurs="0" maxOccurs="unbounded"/>
 <!-- time of validity -->
 <xs:element name="validity_period" type="nts:validity period type"
 minOccurs="0"/>
 <!-- date of publication of the notice -->
 <xs:element name="dates_issue" type="nts-ms:date_pair" minOccurs="0" maxOccurs="unbounded"/>
 <!-- optional parameter for paging mechanism -->
 <xs:element name="paging_request" type="nts-ms:paging_request_type" minOccurs="0"/>
 </xs:sequence>
 </xs:complexType>
 </xs:element>
 <!-- result to query — can contain
 —
 "nts:RIS_MessageType", arbitrary number, defined in the NtS-xsd (see www.ris.eu)
 —
 "nts-ms:error_code_type", arbitrary number, defined in this schema
 —
 "nts-ms:paging_result_type", optional, defined in this schema -->
 <xs:element name="get_messages_result">
 <xs:complexType>
 <xs:sequence>
 <xs:element name="result_message" type="nts:RIS_Message_Type" minOccurs= "0" maxOccurs="unbounded"/>
 <xs:element name="result_error" type="nts-ms:error_code_type" minOccurs= "0" maxOccurs="unbounded"/>
 <xs:element name="paging_result" type="nts-ms:paging_result_type" minOccurs="0"/>
 </xs:sequence>
 </xs:complexType>
 </xs:element>
 <!-- type definitions used in request -->
 <xs:simpleType name="message_type_type">
 <xs:restriction base="xs:string">
 <xs:enumeration value="FTM"/>
 <xs:enumeration value="WRM"/>
 <xs:enumeration value="ICEM"/>
 <xs:enumeration value="WERM"/>
 </xs:restriction>
 </xs:simpleType>
 <xs:complexType name="id_pair">
 <xs:sequence>
 <xs:element name="id" type="nts:isrs_code_type" minOccurs="1" maxOccurs="2" />
 </xs:sequence>
 </xs:complexType>
 <xs:complexType name="date_pair">
 <xs:sequence>
 <xs:element name="date_start" type="xs:date"/>
 <xs:element name="date_end" type="xs:date" minOccurs="0"/>
 </xs:sequence>
 </xs:complexType>
 <xs:complexType name="paging_request_type">
 <xs:sequence>
 <xs:element name="offset" type="xs:nonNegativeInteger"/>
 <xs:element name="limit" type="xs:nonNegativeInteger"/>
 <xs:element name="total_count" type="xs:boolean"/>
 </xs:sequence>
 </xs:complexType>
 <!-- type definitions used in response -->
 <xs:simpleType name="error_code_type">
 <xs:restriction base="xs:string">
 <xs:enumeration value="e010">
 <xs:annotation>
 <xs:documentation>Description: message type not supported, Explanation: web service does not support the requested message type</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
 <xs:enumeration value="e030">
 <xs:annotation>
 <xs:documentation>Description: paging parameters inconsistent with messages, Explanation: parameters for paging mechanism do not fit the available messages, e.g. Offset >= Total Count</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
 <xs:enumeration value="e100">
 <xs:annotation>
 <xs:documentation>Description: syntax error in request, Explanation: request violates the schema for requests</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
 <xs:enumeration value="e110">
 <xs:annotation>
 <xs:documentation>Description: incorrect message type, Explanation: given message type is not known</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
 <xs:enumeration value="e120">
 <xs:annotation>
 <xs:documentation>Description: incorrect type-specific parameters, Explanation: type-specific parameters are erroneous</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
 <xs:enumeration value="e130">
 <xs:annotation>
 <xs:documentation>Description: incorrect paging parameters, Explanation: given parameters for the paging mechanism are erroneous</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
 <xs:enumeration value="e200">
 <xs:annotation>
 <xs:documentation>Description: operation not known, Explanation: the requested operation is unknown</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
 <xs:enumeration value="e300">
 <xs:annotation>
 <xs:documentation>Description: data source unavailable, Explanation: data source of the web service for the NtS data is temporarily unavailable</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
 <xs:enumeration value="e310">
 <xs:annotation>
 <xs:documentation>Description: too many results for request, Explanation: server is unable to handle number of results</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
 </xs:restriction>
 </xs:simpleType>
 <xs:complexType name="paging_result_type">
 <xs:sequence>
 <xs:element name="offset" type="xs:nonNegativeInteger"/>
 <xs:element name="count" type="xs:nonNegativeInteger"/>
 <xs:element name="total_count" type="xs:nonNegativeInteger" minOccurs="0"/>
