Files
SDL/VERAG_PROG_ALLGEMEIN/Schnittstellen/MIC/MIC_IMPORT/MicInterface.xsd
2026-09-23 08:51:40 +02:00

296 lines
12 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!-- Mit XMLSpy v2007 sp1 bearbeitet (http://www.altova.com) von Friedrich Gassner (private) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="urn:http://www.mic-cust.com/Webservice/MicInterface/v1.0"
targetNamespace="urn:http://www.mic-cust.com/Webservice/MicInterface/v1.0" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<!--===== MIC Interface =====-->
<!--===== Version: 1.0 =====-->
<!--===== Root Element =====-->
<xs:element name="sendData" type="sendData"/>
<xs:element name="sendDataResponse" type="sendDataResponse"/>
<xs:element name="getDataForPartnerID" type="getDataForPartnerID"/>
<xs:element name="getDataForTransActionID" type="getDataForTransActionID"/>
<xs:element name="getDataResponse" type="getDataResponse"/>
<xs:element name="MicInterfaceRequest" type="TMicInterface"/>
<xs:element name="MicInterfaceResponse" type="TMicInterface"/>
<!--===== Data Groups Declarations =====-->
<xs:complexType name="getDataForPartnerID">
<xs:sequence>
<xs:element name="partnerID" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:element name="getDataforPartnerID"/>
<xs:complexType name="getDataForTransActionID">
<xs:sequence>
<xs:element name="transActionID" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:element name="getDataforTransActionID"/>
<xs:complexType name="sendData">
<xs:sequence>
<xs:element name="MicInterfaceRequest" type="TMicInterface">
<xs:annotation>
<xs:documentation>Connection Details: are used to identify the communicationg system.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="getDataResponse">
<xs:sequence>
<xs:element name="MicInterfaceResponse" type="TMicInterface">
<xs:annotation>
<xs:documentation>Connection Details: are used to identify the communicationg system.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="sendDataResponse">
<xs:sequence>
<xs:element name="MicInterfaceResponse" type="TMicInterface">
<xs:annotation>
<xs:documentation>Connection Details: are used to identify the communicationg system.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="TMicInterface">
<xs:sequence>
<xs:element name="Connection" type="TMicInterfaceConnection">
<xs:annotation>
<xs:documentation>Connection Details: are used to identify the communicationg system.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Messages" type="TMicInterfaceMessages">
<xs:annotation>
<xs:documentation>Set of Interface-Messages</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="TMicInterfaceConnection">
<xs:annotation>
<xs:documentation>Details of the connection to the ERP-System</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="connectionID">
<xs:annotation>
<xs:documentation>ConnectionID of the MIC-Interface WebService</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="ConnectionID">
<xs:maxLength value="40"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="partnerID" type="PartyID">
<xs:annotation>
<xs:documentation>The partnerID is a unique ID provided by the MIC-System and classify the
ERP-System of the customer. This information is given by MIC.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="dateTime" type="DateTime">
<xs:annotation>
<xs:documentation>Creationdate/time of the Message in the ERP-System</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="TMicInterfaceMessages">
<xs:annotation>
<xs:documentation>MIC Inteface Messages (able to contain multible messages)</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Message" type="TMicInterfaceMessage" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Interface-Message</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="TMicInterfaceMessage">
<xs:annotation>
<xs:documentation>MIC Interface Message</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Envelope" type="TMicInterfaceMessageEnvelope">
<xs:annotation>
<xs:documentation>Message-Envelope: description of the provided message</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ActionCode" type="TMicInterfaceMessageAction" minOccurs="0">
<xs:annotation>
<xs:documentation>The ActionCode definies the autmoatic process in the MIC-Application.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Body" minOccurs="0">
<xs:annotation>
<xs:documentation>Interface-Message</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="messageType" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="TMicInterfaceMessageEnvelope">
<xs:annotation>
<xs:documentation>MIC Interface Message Envelope: description of the single message</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="messageID" type="MessageID">
<xs:annotation>
<xs:documentation>Unique Message ID</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="partyID" type="PartyID">
<xs:annotation>
<xs:documentation>partyID is used as a separations of departments or single messagegroups
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="schemaID" type="SchemaID">
<xs:annotation>
<xs:documentation>Versionnumber. Information provided by MIC</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="transActionID" type="TransactionID">
<xs:annotation>
<xs:documentation>Unique Identifier of a transaction (declaration) e.g. MRN or LRN
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="sequenceNum" type="SequenceNum">
<xs:annotation>
<xs:documentation>Running number of the transActionID</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="TMicInterfaceMessageAction">
<xs:annotation>
<xs:documentation>Action Requested for automatic processing</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="code" type="ActionCode">
<xs:annotation>
<xs:documentation>code</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="parameter" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>additional parameters</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="key"/>
<xs:attribute name="value"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="Date">
<xs:annotation>
<xs:documentation>Type: xs:date</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:date"/>
</xs:simpleType>
<xs:simpleType name="DateTime">
<xs:annotation>
<xs:documentation>Type: xs:dateTime</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:dateTime"/>
</xs:simpleType>
<xs:simpleType name="TransactionID">
<xs:annotation>
<xs:documentation>Envelope:Unique transactionId used for communication with at.mic.edis.ws.test
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:maxLength value="100"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="SequenceNum">
<xs:annotation>
<xs:documentation>Envelope:running count</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:integer"/>
</xs:simpleType>
<xs:simpleType name="MessageID">
<xs:annotation>
<xs:documentation>envelope:Unique Message ID used for communication in message envelope</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:maxLength value="100"/>
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="SchemaID">
<xs:annotation>
<xs:documentation>Envelope:code of message schema version</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="(\p{L}|\p{Nd}|\p{P}|\p{Z})*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="PartyID">
<xs:annotation>
<xs:documentation>Envelope: communication partner</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="10"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Key">
<xs:annotation>
<xs:documentation>Keyname of the parameter</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="20"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Value">
<xs:annotation>
<xs:documentation>Value of the parameterkey</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="350"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ActionCode">
<xs:annotation>
<xs:documentation>Action request for automatic processing</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="10"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ConnectionID">
<xs:annotation>
<xs:documentation>ConnectionID of the MIC-Webservice</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:maxLength value="40"/>
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Body">
<xs:annotation>
<xs:documentation>XML Interface Message</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string"/>
</xs:simpleType>
</xs:schema>