2013-11-13 14:10:30 +00:00

50 lines
2.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://services.giant-net.com/schema/services/shared/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://services.giant-net.com/schema/services/shared/1.0">
<xs:element name="ServiceHeader">
<xs:complexType>
<xs:sequence>
<xs:element name="ConsumerId" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="CustomerId" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="Provider" type="tns:Provider" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="TimeStamp" type="xs:dateTime" minOccurs="1" maxOccurs="1"/>
<xs:element name="TestIndication" type="xs:boolean" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="version" use="optional" default="1.0" type="xs:decimal"/>
</xs:complexType>
</xs:element>
<xs:complexType name="Provider">
<xs:sequence>
<xs:element name="ProviderId" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="CountryCode" type="tns:CountryCodeType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="CountryCodeType">
<xs:restriction base="xs:string">
<xs:pattern value="[A-Z_0-9]*"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ExceptionType">
<xs:sequence>
<xs:element name="ErrorCode" type="xs:int" minOccurs="1" maxOccurs="1"/>
<xs:element name="ErrorMessage" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="ErrorDetails" type="xs:string" minOccurs="1" maxOccurs="1" nillable="true"/>
</xs:sequence>
<xs:attribute name="version" use="optional" default="1.0" type="xs:decimal"/>
</xs:complexType>
<xs:complexType name="FunctionalExceptionType">
<xs:complexContent>
<xs:extension base="tns:ExceptionType">
<xs:sequence/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="TechnicalExceptionType">
<xs:complexContent>
<xs:extension base="tns:ExceptionType">
<xs:sequence/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="FunctionalException" type="tns:FunctionalExceptionType"/>
<xs:element name="TechnicalException" type="tns:TechnicalExceptionType"/>
</xs:schema>