<?xml version="1.0" encoding="utf-8" ?>
<!--Created with Liquid XML Studio - FREE Community Edition 7.0.3.780 (http://www.liquid-technologies.com)-->
<xs:schema version="1.47" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="AdvantageEnterpriseVersion0.1">
    <xs:annotation>
      <xs:documentation>Root element</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:complexContent mixed="false">
        <xs:extension base="AdvantageEnterpriseType" />
      </xs:complexContent>
    </xs:complexType>
  </xs:element>
  <xs:complexType name="AdvantageEnterpriseType">
    <xs:sequence>
      <xs:element name="SENDER" type="SENDERType">
        <xs:annotation>
          <xs:documentation>sender</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EMPFANGSSYSTEM">
        <xs:annotation>
          <xs:documentation>receiver system</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ID_EMPFANGSSYSTEM">
              <xs:annotation>
                <xs:documentation>id of receiver system</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:enumeration value="ALPO" />
                  <xs:enumeration value="NLRTMPCS" />
                  <xs:enumeration value="APCS" />
                  <xs:enumeration value="ALPO_BLGAUTO" />
                  <xs:enumeration value="SOLAS" />
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="NachrichtenZeitstempel" type="ZeitstempelType">
        <xs:annotation>
          <xs:documentation>Timestamp of message</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:choice>
        <xs:sequence>
          <xs:choice>
            <xs:element name="Hafenauftrag" type="HafenauftragType">
              <xs:annotation>
                <xs:documentation>port order BHT / ZAPP (Germany)</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="ECSPortBase">
              <xs:annotation>
                <xs:documentation>ECS Portbase (NL)</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="StandardDokument" type="ECSStandardDokumentType">
                    <xs:annotation>
                      <xs:documentation>Header of ECS message customs/port order (Portbase NL)
                                            </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="APCS" type="APCSType">
              <xs:annotation>
                <xs:documentation>APCS (BL)</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:choice>
          <xs:element minOccurs="0" maxOccurs="50" name="SOLAS" type="SOLASOrderType">
            <xs:annotation>
              <xs:documentation>SOLAS/VGM in addition to Port Order</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
        <xs:element maxOccurs="50" name="SOLAS" type="SOLASOrderType">
          <xs:annotation>
            <xs:documentation>SOLAS/VGM without Port Order</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragZollDatenAESType">
    <xs:sequence>
      <xs:element name="AESZaehler">
        <xs:annotation>
          <xs:documentation>AES counter</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:integer">
            <xs:minInclusive value="1" />
            <xs:maxInclusive value="9999" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:choice>
        <xs:sequence>
          <xs:element name="MRN">
            <xs:annotation>
              <xs:documentation>MRN (master reference number)</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:length value="18" />
              </xs:restriction>
            </xs:simpleType>
          </xs:element>
          <xs:element name="MRNKomplett">
            <xs:annotation>
              <xs:documentation>MRN complet (AES)</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:enumeration value="true" />
                <xs:enumeration value="True" />
                <xs:enumeration value="TRUE" />
                <xs:enumeration value="false" />
                <xs:enumeration value="False" />
                <xs:enumeration value="FALSE" />
              </xs:restriction>
            </xs:simpleType>
          </xs:element>
        </xs:sequence>
        <xs:sequence>
          <xs:element name="LRN">
            <xs:annotation>
              <xs:documentation>LRN (local reference number)</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="22" />
              </xs:restriction>
            </xs:simpleType>
          </xs:element>
          <xs:element name="LRNKomplett">
            <xs:annotation>
              <xs:documentation>LRN complete (AES)</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:enumeration value="true" />
                <xs:enumeration value="True" />
                <xs:enumeration value="TRUE" />
                <xs:enumeration value="false" />
                <xs:enumeration value="False" />
                <xs:enumeration value="FALSE" />
              </xs:restriction>
            </xs:simpleType>
          </xs:element>
          <xs:choice>
            <xs:sequence>
              <xs:element name="AnmelderIdentifikationsNr">
                <xs:annotation>
                  <xs:documentation>Identifikations Nummer Anmelder</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="17" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="AnmelderNiederlassungsNr">
                <xs:annotation>
                  <xs:documentation>Niederlassungs Nummer Anmelder</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:length value="4" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
            <xs:sequence>
              <xs:element name="VertreterIdentifikationsNr">
                <xs:annotation>
                  <xs:documentation>Identifikations Nummer Vertreter</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="17" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="VertreterNiederlassungsNr">
                <xs:annotation>
                  <xs:documentation>Niederlassungs Nummer Vertreter</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:length value="4" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:choice>
        </xs:sequence>
      </xs:choice>
      <xs:element minOccurs="0" name="WarenPos">
        <xs:annotation>
          <xs:documentation>good item</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:minInclusive value="1" />
            <xs:maxInclusive value="999" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="WarenPosKomplett">
        <xs:annotation>
          <xs:documentation>good position complete (AES)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="True" />
            <xs:enumeration value="true" />
            <xs:enumeration value="TRUE" />
            <xs:enumeration value="False" />
            <xs:enumeration value="false" />
            <xs:enumeration value="FALSE" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="PackStueckLfdNr">
        <xs:annotation>
          <xs:documentation>package count number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:minInclusive value="1" />
            <xs:maxInclusive value="999" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="PackStueckKomplett">
        <xs:annotation>
          <xs:documentation>package complett</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="true" />
            <xs:enumeration value="True" />
            <xs:enumeration value="TRUE" />
            <xs:enumeration value="false" />
            <xs:enumeration value="False" />
            <xs:enumeration value="FALSE" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="PackStueckAnzahl">
        <xs:annotation>
          <xs:documentation>amount packages</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:minInclusive value="1" />
            <xs:maxInclusive value="99999999" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Mindermenge">
        <xs:annotation>
          <xs:documentation>less amount</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="True" />
            <xs:enumeration value="true" />
            <xs:enumeration value="TRUE" />
            <xs:enumeration value="False" />
            <xs:enumeration value="false" />
            <xs:enumeration value="FALSE" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="RestgewichtNetto">
        <xs:annotation>
          <xs:documentation>rest net weight</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:decimal">
            <xs:totalDigits value="16" />
            <xs:fractionDigits value="6" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="BruttoGewicht">
        <xs:annotation>
          <xs:documentation>gross weight</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:decimal">
            <xs:totalDigits value="16" />
            <xs:fractionDigits value="3" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="DUX">
        <xs:annotation>
          <xs:documentation>ZAPP specific field - DUX (ASumA DUX with MRN)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="true" />
            <xs:enumeration value="True" />
            <xs:enumeration value="TRUE" />
            <xs:enumeration value="false" />
            <xs:enumeration value="False" />
            <xs:enumeration value="FALSE" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="WKSVerfahren">
        <xs:annotation>
          <xs:documentation>ZAPP specific when kind of declaration=DUX (DUX with MRN)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="WAM"/>
            <xs:enumeration value="ASUMA"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="ZAPPMRNPositionFehlt">
        <xs:annotation>
          <xs:documentation>ZAPP specific: flag MRN position absent</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="true" />
            <xs:enumeration value="True" />
            <xs:enumeration value="TRUE" />
            <xs:enumeration value="false" />
            <xs:enumeration value="False" />
            <xs:enumeration value="FALSE" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="ZAPPMRNPackIdFehlt">
        <xs:annotation>
          <xs:documentation>ZAPP specific: flag MRN pack-id absent</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="true" />
            <xs:enumeration value="True" />
            <xs:enumeration value="TRUE" />
            <xs:enumeration value="false" />
            <xs:enumeration value="False" />
            <xs:enumeration value="FALSE" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="ZAPPMRNPositionMMGewicht">
        <xs:annotation>
          <xs:documentation>ZAPP specific: flag shortage due to reduce net weight</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="true" />
            <xs:enumeration value="True" />
            <xs:enumeration value="TRUE" />
            <xs:enumeration value="false" />
            <xs:enumeration value="False" />
            <xs:enumeration value="FALSE" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="ZAPPMRNZuordnung">
        <xs:annotation>
          <xs:documentation>Zapp specific for GM01</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="1" />
            <xs:enumeration value="W" />
            <xs:enumeration value="V" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="ZAPPASumAUeberlassungDatum" type="ZeitstempelType">
        <xs:annotation>
          <xs:documentation>ZAPP specific when kind of declaration=DUX (ASumA DUX with MRN)</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ECSAntragKopfType">
    <xs:sequence>
      <xs:element minOccurs="0" name="AntragsReferenz" type="xs:string">
        <xs:annotation>
          <xs:documentation>order reference</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AntragsAktion">
        <xs:annotation>
          <xs:documentation>action/ meaning of order</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="original" />
            <xs:enumeration value="deletion" />
            <xs:enumeration value="Original" />
            <xs:enumeration value="Deletion" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="vorAntragsReferenz" type="xs:string">
        <xs:annotation>
          <xs:documentation>order reference of pre-order</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="APCSOrderType">
    <xs:annotation>
      <xs:documentation>complexType for APCS port order</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Bearbeitungszustand">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="New" />
            <xs:enumeration value="NewAndSend" />
            <xs:enumeration value="NEW" />
            <xs:enumeration value="NEWANDSEND" />
            <xs:enumeration value="NEU" />
            <xs:enumeration value="NEU_SENDEN" />
            <xs:enumeration value="Neu" />
            <xs:enumeration value="Neu_Senden" />
            <xs:enumeration value="CANCELATION" />
            <xs:enumeration value="Cancelation" />
            <xs:enumeration value="STORNO" />
            <xs:enumeration value="Storno" />
            <xs:enumeration value="Replace" />
            <xs:enumeration value="REPLACE" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="StandardDokumentKopf" type="eBalieStandartDocumentKopfType">
        <xs:annotation>
          <xs:documentation>document / message header</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Antragsdaten">
        <xs:annotation>
          <xs:documentation>order details</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ExportAuftrag" type="eBalieExportAuftragType">
              <xs:annotation>
                <xs:documentation>export order</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="StatusmeldungAuftragdatenType">
    <xs:sequence>
      <xs:element minOccurs="0" name="SIS-NR">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:length value="7" fixed="true" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="SchiffsName">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="30" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="DatumETS" type="DateType">
        <xs:annotation>
          <xs:documentation>on export order mandatory field</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="DatumETA" type="DateType">
        <xs:annotation>
          <xs:documentation>on import order mandatory field</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="AdresseBA" type="HafenauftragAdresseType" />
      <xs:element minOccurs="0" name="AdresseCA" type="HafenauftragAdresseType" />
      <xs:element minOccurs="0" name="Locationen" type="HafenauftragLocationenType" />
      <xs:element minOccurs="0" name="WarenUndVerpackungen">
        <xs:complexType>
          <xs:choice>
            <xs:element name="Containerdaten">
              <xs:annotation>
                <xs:documentation>data of Container only for FCL-orders avialable</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element maxOccurs="999" name="Container" type="StatusmeldungContainerType" />
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="WarenAngaben" type="HafenauftragWarenAngabenType" />
          </xs:choice>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragBahnDatenType">
    <xs:sequence>
      <xs:element name="VTKennzeichen">
        <xs:annotation>
          <xs:documentation>pre-carrier truck licence number, vessel name (barge) or waggon no.
                    </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="VTEingangNr">
        <xs:annotation>
          <xs:documentation>pre-carrier rail gate in number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="VTSollEingang">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Datum" type="ZeitstempelType">
              <xs:annotation>
                <xs:documentation>date</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" name="VTBestellNr">
        <xs:annotation>
          <xs:documentation>pre-carrier rail order number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="StatusmeldungBHTReferenzType">
    <xs:sequence>
      <xs:element name="BHT-Referenz">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:length value="7" fixed="true" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="KopfNummer">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:length value="3" fixed="true" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="AuftragsPosition" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragBischiDatenType">
    <xs:sequence>
      <xs:element minOccurs="0" name="VTEuroNr">
        <xs:annotation>
          <xs:documentation>pre-carrier barge EU-number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element name="VTKennzeichen">
        <xs:annotation>
          <xs:documentation>pre-carrier truck licence number, vessel name (barge) or waggon no.
                    </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="StatusmeldungContainerType">
    <xs:sequence>
      <xs:element minOccurs="0" name="Identifikation" type="xs:string" />
      <xs:element minOccurs="0" name="Bauart">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="2" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="ContLaenge" type="xs:byte" />
      <xs:element minOccurs="0" name="ContHoehe" type="xs:string" />
      <xs:element minOccurs="0" name="MasseGewichte" type="HafenauftragMasseGewichteType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragContainerZusatzangabenType">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="1" name="Art">
        <xs:simpleType>
          <xs:annotation>
            <xs:documentation>Temperature type - New field in ALPO 4.0</xs:documentation>
          </xs:annotation>
          <xs:restriction base="xs:string">
            <xs:enumeration value="K" />
            <xs:enumeration value="H" />
            <xs:enumeration value="C" />
            <xs:enumeration value="k" />
            <xs:enumeration value="h" />
            <xs:enumeration value="c" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="TempEinheit">
        <xs:annotation>
          <xs:documentation>temperature unit</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="1" />
            <xs:enumeration value="F" />
            <xs:enumeration value="C" />
            <xs:enumeration value="K" />
            <xs:enumeration value="f" />
            <xs:enumeration value="c" />
            <xs:enumeration value="k" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="TempVon">
        <xs:annotation>
          <xs:documentation>temperature start</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="TempBis">
        <xs:annotation>
          <xs:documentation>temperature end</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Buchungsnummer">
        <xs:annotation>
          <xs:documentation>booking reference</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Freistellnummer">
        <xs:annotation>
          <xs:documentation>import clearing number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="VerfuegbarkeitsDatum" type="DateType">
        <xs:annotation>
          <xs:documentation>date of availability (container import)</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="Siegelnummer1">
        <xs:annotation>
          <xs:documentation>seal number 1</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="12" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Siegelnummer2">
        <xs:annotation>
          <xs:documentation>seal number 2</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="12" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Siegelnummer3">
        <xs:annotation>
          <xs:documentation>seal number 3</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="12" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Siegelnummer4">
        <xs:annotation>
          <xs:documentation>seal number 4</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="12" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Referenz-Cross-No">
        <xs:annotation>
          <xs:documentation>cross number reference</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="DateType">
    <xs:annotation>
      <xs:documentation>Day (Time) information</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Tag" type="xs:date">
        <xs:annotation>
          <xs:documentation>Day</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="Zeit" type="xs:time">
        <xs:annotation>
          <xs:documentation>Time</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragDivAngabenType">
    <xs:sequence>
      <xs:element minOccurs="0" name="Kennwort">
        <xs:annotation>
          <xs:documentation>password</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Buchungsnummer">
        <xs:annotation>
          <xs:documentation>booking reference</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="DirekteUebernahme">
        <xs:annotation>
          <xs:documentation>directly takeover</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="BLNummer">
        <xs:annotation>
          <xs:documentation>bill of lading number (import)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Hauptmarkierung">
        <xs:annotation>
          <xs:documentation>main mark (for the transport)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ECSDokumentDatenType">
    <xs:sequence>
      <xs:element name="DokumentZaehler" type="xs:int">
        <xs:annotation>
          <xs:documentation>content counter</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AntragsKopf" type="ECSAntragKopfType">
        <xs:annotation>
          <xs:documentation>order header</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Antragsdaten">
        <xs:annotation>
          <xs:documentation>order details</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ExportAuftrag" type="ECSExportAuftragType">
              <xs:annotation>
                <xs:documentation>export order</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="eBalieDokumentType">
    <xs:sequence>
      <xs:element name="MRNType">
        <xs:annotation>
          <xs:documentation>Type of MRN
                        Possible values are :
                        COA (T2LF)
                        EX (export MRN ECS)
                        EXS (Exit Summary Declaration)
                        T2L
                        TN (Transhipment)
                        T (Transit)
                        226 (art. 226 CTW 2454/93)
                    </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="5" fixed="true" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="MRN">
        <xs:annotation>
          <xs:documentation>MRN (movement reference number)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="18" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="eBalieDokumentZusatzType">
    <xs:sequence>
      <xs:element minOccurs="0" name="SpeditionsbuchNr">
        <xs:annotation>
          <xs:documentation>order number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="30" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" maxOccurs="1" name="Kundenreferenz">
        <xs:annotation>
          <xs:documentation>Your own reference, for searching/sorting, this is not sent to the port system
                    </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:minLength value="1" />
            <xs:maxLength value="64" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="SchiffsName">
        <xs:annotation>
          <xs:documentation>name of vessel</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="30" fixed="true" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="DatumETS" type="DateType">
        <xs:annotation>
          <xs:documentation>date ets</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="LoeschHafen">
        <xs:annotation>
          <xs:documentation>port of discharge (un-location code)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="5" fixed="true" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Bemerkungen">
        <xs:annotation>
          <xs:documentation>remarks</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="288" fixed="true" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="eBalieEquipmentType">
    <xs:sequence>
      <xs:element name="EquipmentZaehler" type="xs:int">
        <xs:annotation>
          <xs:documentation>equipment counter</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EquipmentNummer">
        <xs:annotation>
          <xs:documentation>equipment number
                        Container No. or Vehicle No. (RoRo)
                    </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="17" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="ShipperOwned">
        <xs:annotation>
          <xs:documentation>shipper' own container</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="true" />
            <xs:enumeration value="false" />
            <xs:enumeration value="True" />
            <xs:enumeration value="False" />
            <xs:enumeration value="TRUE" />
            <xs:enumeration value="FALSE" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="BuchungsReferenz">
        <xs:annotation>
          <xs:documentation>carrier booking reference</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="CarrierType">
        <xs:annotation>
          <xs:documentation>Transport type of pre-leg</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:length value="2" fixed="true" />
            <xs:enumeration value="bg" />
            <xs:enumeration value="BG" />
            <xs:enumeration value="rl" />
            <xs:enumeration value="RL" />
            <xs:enumeration value="tr" />
            <xs:enumeration value="TR" />
            <xs:enumeration value="VS" />
            <xs:enumeration value="vs" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CustomsOffice">
        <xs:annotation>
          <xs:documentation>Customs office of exit for this document Exsample: BE101000</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="8" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="ZollDokumente">
        <xs:annotation>
          <xs:documentation>customs document</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="99" name="Dokument" type="eBalieDokumentType" />
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="eBalieExportAuftragType">
    <xs:sequence>
      <xs:element default="C" name="Transaction">
        <xs:annotation>
          <xs:documentation>Transaction type
                        C=Create / D=Deletion
                    </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:length value="1" />
            <xs:enumeration value="C" />
            <xs:enumeration value="c" />
            <xs:enumeration value="D" />
            <xs:enumeration value="d" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="MessageType">
        <xs:annotation>
          <xs:documentation>Message Type</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="15" fixed="true" />
            <xs:enumeration value="ebalie" />
            <xs:enumeration value="Ebalie" />
            <xs:enumeration value="EBALIE" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="OrderType">
        <xs:annotation>
          <xs:documentation>Type of order: cont -&gt; Container order / roro -&gt; RoRo order
                        If the Tag is not used, the message will be considered to be a container order.
                    </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="cont" />
            <xs:enumeration value="roro" />
            <xs:enumeration value="CONT" />
            <xs:enumeration value="RORO" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="AntragsReferenz" type="xs:string">
        <xs:annotation>
          <xs:documentation>order reference</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Terminal">
        <xs:annotation>
          <xs:documentation>terminal code Exsample: BEANR011160S869</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="15" fixed="true" />
            <xs:minLength value="5" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element maxOccurs="99" name="Equipment" type="eBalieEquipmentType">
        <xs:annotation>
          <xs:documentation>equipment details</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ECSPortBaseType">
    <xs:annotation>
      <xs:documentation>complexType for ECS port order</xs:documentation>
    </xs:annotation>
  </xs:complexType>
  <xs:complexType name="StatusmeldungECSReferenzType">
    <xs:sequence>
      <xs:element name="ECSNachrichtReferenz">
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="EMPFANGSSYSTEMType">
    <xs:sequence />
  </xs:complexType>
  <xs:complexType name="ECSEquipmentType">
    <xs:sequence>
      <xs:element name="EquipmentZaehler" type="xs:int">
        <xs:annotation>
          <xs:documentation>equipment counter</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EquipmentNummer">
        <xs:annotation>
          <xs:documentation>equipment number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="11" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="ShipperOwned">
        <xs:annotation>
          <xs:documentation>shipper' own container</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="true" />
            <xs:enumeration value="false" />
            <xs:enumeration value="True" />
            <xs:enumeration value="False" />
            <xs:enumeration value="TRUE" />
            <xs:enumeration value="FALSE" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="BuchungsReferenz">
        <xs:annotation>
          <xs:documentation>carrier booking reference</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Brutto-Gewicht">
        <xs:annotation>
          <xs:documentation>gross weight</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:decimal" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Brutto-Einheit">
        <xs:annotation>
          <xs:documentation>gross weight unit</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ECSExportAuftragType">
    <xs:sequence>
      <xs:element name="ZollDokument" type="ECSZollDokumentType">
        <xs:annotation>
          <xs:documentation>customs document</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="NotifyPartyEmail">
        <xs:annotation>
          <xs:documentation>email of notify partxy</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="50" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Brutto-Gewicht">
        <xs:annotation>
          <xs:documentation>gross weight</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:decimal" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Brutto-Einheit">
        <xs:annotation>
          <xs:documentation>gross weight unit</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element maxOccurs="99" name="Equipment" type="ECSEquipmentType">
        <xs:annotation>
          <xs:documentation>equipment</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragGefahrgutDatenType">
    <xs:annotation>
      <xs:documentation>complexType for Dangerous goods BHT / ZAPP</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Zaehler">
        <xs:annotation>
          <xs:documentation>counter</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:minInclusive value="1" />
            <xs:maxInclusive value="9999" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Aussteller">
        <xs:annotation>
          <xs:documentation>issuer of DGD</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element name="Anzahl">
        <xs:annotation>
          <xs:documentation>amount</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:integer">
            <xs:minInclusive value="1" />
            <xs:maxInclusive value="999999" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="VerpackungsArt">
        <xs:annotation>
          <xs:documentation>package type (UnRec 21)
                        Please note: for Haz.mat. not every type is available.
                    </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:length value="2" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Klasse">
        <xs:annotation>
          <xs:documentation>class (dangerous goods)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="4" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="UN-NR">
        <xs:annotation>
          <xs:documentation>HazMat UN-No.</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="EMS1">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="6" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="EMS2">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="6" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="MFAG1">
        <xs:annotation>
          <xs:documentation>mfag 1</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="4" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="MFAG2">
        <xs:annotation>
          <xs:documentation>mfag 2</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="4" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="PrimaerLabel">
        <xs:annotation>
          <xs:documentation>primary label</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="4" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="SekundaerLabel1">
        <xs:annotation>
          <xs:documentation>secondary label 1 (hazmat)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="4" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="SekundaerLabel2">
        <xs:annotation>
          <xs:documentation>secondary label 2 (hazmat)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="4" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="VPGGruppe">
        <xs:annotation>
          <xs:documentation>package group (dangerous goods)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="I" />
            <xs:enumeration value="II" />
            <xs:enumeration value="III" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Staumethode">
        <xs:annotation>
          <xs:documentation>stuffing type (hazmat)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="3" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="EinheitFP">
        <xs:annotation>
          <xs:documentation>temperature unit flash point</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="C" />
            <xs:enumeration value="F" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Flammpunkt">
        <xs:annotation>
          <xs:documentation>flashpoint</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:decimal">
            <xs:totalDigits value="4" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Bemerkungen">
        <xs:annotation>
          <xs:documentation>remarks</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="288" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Sprengstoffschein">
        <xs:annotation>
          <xs:documentation>explosive handling license</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="true" />
            <xs:enumeration value="True" />
            <xs:enumeration value="TRUE" />
            <xs:enumeration value="false" />
            <xs:enumeration value="False" />
            <xs:enumeration value="FALSE" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="GGBrutto">
        <xs:annotation>
          <xs:documentation>gross weight dangerous goods (kg)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:decimal">
            <xs:totalDigits value="11" />
            <xs:fractionDigits value="3" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="ExplosivGewicht">
        <xs:annotation>
          <xs:documentation>explosive gross weight (kg)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:decimal">
            <xs:totalDigits value="8" />
            <xs:fractionDigits value="1" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="TechnischeBezeichnung">
        <xs:annotation>
          <xs:documentation>technical description hazmat</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="130" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Gefahrausloeser">
        <xs:annotation>
          <xs:documentation>hazard inducer</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="130" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Wassergefaehrdungsklasse">
        <xs:annotation>
          <xs:documentation>water dangerous class</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="0" />
            <xs:enumeration value="1" />
            <xs:enumeration value="2" />
            <xs:enumeration value="3" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="LimitedQuantities">
        <xs:annotation>
          <xs:documentation>limited quantities (dangerous goods)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:pattern value="true" />
            <xs:pattern value="True" />
            <xs:pattern value="TRUE" />
            <xs:pattern value="false" />
            <xs:pattern value="False" />
            <xs:pattern value="FALSE" />
            <xs:enumeration value="true" />
            <xs:enumeration value="false" />
            <xs:enumeration value="True" />
            <xs:enumeration value="False" />
            <xs:enumeration value="TRUE" />
            <xs:enumeration value="FALSE" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="ExceptedQuantities">
        <xs:annotation>
          <xs:documentation>except quantities (dangerous goods)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="true" />
            <xs:enumeration value="false" />
            <xs:enumeration value="True" />
            <xs:enumeration value="False" />
            <xs:enumeration value="TRUE" />
            <xs:enumeration value="FALSE" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Vermerke">
        <xs:annotation>
          <xs:documentation>remarks</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="60" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="GefaehrlicheBestandteile">
        <xs:annotation>
          <xs:documentation>hazard matter</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Land" type="HafenauftragGefahrgutLandType">
        <xs:annotation>
          <xs:documentation>land</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="Radioaktiv" type="HafenauftragGefahrgutRadioaktivType">
        <xs:annotation>
          <xs:documentation>radioactive</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragGewichteType">
    <xs:sequence>
      <xs:element minOccurs="0" name="Tara-Einheit">
        <xs:annotation>
          <xs:documentation>tara weight unit (kg)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="kg" />
            <xs:enumeration value="KG" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Tara-Gewicht" type="xs:decimal">
        <xs:annotation>
          <xs:documentation>tara weight</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="Brutto-Einheit">
        <xs:annotation>
          <xs:documentation>gross weight unit</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="kg" />
            <xs:enumeration value="KG" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Brutto-Gewicht">
        <xs:annotation>
          <xs:documentation>gross weight</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:decimal" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Netto-Einheit">
        <xs:annotation>
          <xs:documentation>net weight unit</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="kg" />
            <xs:enumeration value="KG" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Netto-Gewicht">
        <xs:annotation>
          <xs:documentation>net weight</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:decimal" />
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragAdresseAbwAGType">
    <xs:sequence>
      <xs:element name="Kundennummer" type="KundennummerType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragAdresseType">
    <xs:annotation>
      <xs:documentation>defining adresses like address of Containercarrier</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element minOccurs="0" name="Kundennummer" type="KundennummerType">
        <xs:annotation>
          <xs:documentation>costomer number</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Name">
        <xs:annotation>
          <xs:documentation>name</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35" fixed="true" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Anschrift1">
        <xs:annotation>
          <xs:documentation>address line 1</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Anschrift2">
        <xs:annotation>
          <xs:documentation>address line 2</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Strasse1">
        <xs:annotation>
          <xs:documentation>street 1</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Strasse2">
        <xs:annotation>
          <xs:documentation>street 2</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Ort">
        <xs:annotation>
          <xs:documentation>Place</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Kontaktperson" type="KontaktpersonType">
        <xs:annotation>
          <xs:documentation>contact person</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="Rechnungswechsel">
        <xs:annotation>
          <xs:documentation>invoice change id</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="TIN">
        <xs:annotation>
          <xs:documentation>partner identification custom number (AES)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Offerte">
        <xs:annotation>
          <xs:documentation>Offer</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="10" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Referenzen" type="HafenauftragReferenzenType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragKopfDatenType">
    <xs:sequence>
      <xs:element name="Bearbeitungszustand">
        <xs:annotation>
          <xs:documentation>handling state (constant "new")</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="New" />
            <xs:enumeration value="NEW" />
            <xs:enumeration value="new" />
            <xs:enumeration value="NewAndSend" />
            <xs:enumeration value="NEU_SENDEN" />
            <xs:enumeration value="Neu_Senden" />
            <xs:enumeration value="CANCELATION" />
            <xs:enumeration value="Cancelation" />
            <xs:enumeration value="STORNO" />
            <xs:enumeration value="Storno" />
            <xs:enumeration value="Replace" />
            <xs:enumeration value="REPLACE" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Kommunikationsart">
        <xs:annotation>
          <xs:documentation>kind of communication (BHT/ZAPP)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="4" />
            <xs:enumeration value="BHT" />
            <xs:enumeration value="ZAPP" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Auftragsart">
        <xs:annotation>
          <xs:documentation>kind of order (special code list BHT / ZAPP)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="10" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="FolgeauftragsArt">
        <xs:annotation>
          <xs:documentation>combi order with the first and followup order (BHT)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Folgeauftrag">
        <xs:annotation>
          <xs:documentation>Creates a following up order (BHT)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="3" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="BHT-Referenz">
        <xs:annotation>
          <xs:documentation>BHT-Reference of this order or status</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="7" fixed="true" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="ZAPP-Referenz">
        <xs:annotation>
          <xs:documentation>reference of port portal dakosy (ZAPP)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="12" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" maxOccurs="1" name="Kundenreferenz">
        <xs:annotation>
          <xs:documentation>Your own reference, for searching/sorting, this is not sent to the port system
                    </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="50" />
            <xs:minLength value="1" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Containerauftrag">
        <xs:annotation>
          <xs:documentation>container order (Y/N)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="5" />
            <xs:enumeration value="True" />
            <xs:enumeration value="true" />
            <xs:enumeration value="TRUE" />
            <xs:enumeration value="False" />
            <xs:enumeration value="false" />
            <xs:enumeration value="FALSE" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Warenrichtung">
        <xs:annotation>
          <xs:documentation>transport direction (Export/Import)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="Import" />
            <xs:enumeration value="Export" />
            <xs:enumeration value="IMPORT" />
            <xs:enumeration value="EXPORT" />
            <xs:enumeration value="I" />
            <xs:enumeration value="E" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Seedurchfuhrgut">
        <xs:annotation>
          <xs:documentation>sea transit goods (flag)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="True" />
            <xs:enumeration value="False" />
            <xs:enumeration value="true" />
            <xs:enumeration value="false" />
            <xs:enumeration value="TRUE" />
            <xs:enumeration value="FALSE" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Bemerkungen">
        <xs:annotation>
          <xs:documentation>remarks</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="288" fixed="true" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Gefahrgut">
        <xs:annotation>
          <xs:documentation>dangerous good (Flag for Transport)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="True" />
            <xs:enumeration value="False" />
            <xs:enumeration value="true" />
            <xs:enumeration value="false" />
            <xs:enumeration value="TRUE" />
            <xs:enumeration value="FALSE" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Zolldaten">
        <xs:annotation>
          <xs:documentation>flag for kind data for customs</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="BHT" />
            <xs:enumeration value="ZAPP" />
            <xs:enumeration value="ZAPP-AES" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="AdresseAG" type="HafenauftragAdresseType">
        <xs:annotation>
          <xs:documentation>address orderer</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="AdresseAbwAG" type="HafenauftragAdresseAbwAGType">
        <xs:annotation>
          <xs:documentation>adress invoice orderer</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="AdresseRE" type="HafenauftragAdresseType">
        <xs:annotation>
          <xs:documentation>address invoice receiver</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Locationen" type="HafenauftragLocationenType">
        <xs:annotation>
          <xs:documentation>locations</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="Schiffidentifikation" type="HafenauftragSchiffIdentifikationType">
        <xs:annotation>
          <xs:documentation>vessel identification</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="DivAngaben" type="HafenauftragDivAngabenType">
        <xs:annotation>
          <xs:documentation>miscellaneous remarks</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="VorNachTransport" type="HafenauftragVorNachTransportType">
        <xs:annotation>
          <xs:documentation>pre/ on carriage</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="Gefahrgutbeauftragter">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="72" fixed="true" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" maxOccurs="1" name="ZappSammelAuftrag">
        <xs:annotation>
          <xs:documentation>Nur Zapp: Kennzeichen für Sammelauftrag (LCL)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="True" />
            <xs:enumeration value="true" />
            <xs:enumeration value="TRUE" />
            <xs:enumeration value="False" />
            <xs:enumeration value="false" />
            <xs:enumeration value="FALSE" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragSchiffAdresseType">
    <xs:sequence>
      <xs:element minOccurs="0" name="Kundennummer" type="KundennummerType" />
      <xs:element name="Name">
        <xs:annotation>
          <xs:documentation>name</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragType">
    <xs:annotation>
      <xs:documentation>BHT / ZAPP port order</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="KopfDaten" type="HafenauftragKopfDatenType">
        <xs:annotation>
          <xs:documentation>head data</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PositionsDaten" type="HafenauftragPositionDatenType">
        <xs:annotation>
          <xs:documentation>Equipment goods data</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="StatusmeldungHafenReferenzType">
    <xs:choice>
      <xs:annotation>
        <xs:documentation>Depends on StatusTyp
                    and AuftragsStatus:
                    anytime at StatusTyp BHT or ZAPP, ECS, PSA etc. unless "AUA" or "SEN"
                </xs:documentation>
      </xs:annotation>
      <xs:element name="BHT" type="StatusmeldungBHTReferenzType" />
      <xs:element name="ECS" type="StatusmeldungECSReferenzType">
        <xs:annotation>
          <xs:documentation>ECS is the portsystem of Portbase in Rotterdam</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ZAPP" type="StatusmeldungZAPPReferenzType">
        <xs:annotation>
          <xs:documentation>ZAPP is the port portal of dakosy at Hamburg</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PSA" type="StatusmeldungPSAReferenzType">
        <xs:annotation>
          <xs:documentation>PSA is a portsystem of Porthuis in Antwerp</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:choice>
  </xs:complexType>
  <xs:complexType name="HafenauftragHafenType">
    <xs:sequence>
      <xs:annotation>
        <xs:documentation>port of loading and port of destination are mandatory</xs:documentation>
      </xs:annotation>
      <xs:element name="LadeHafen">
        <xs:annotation>
          <xs:documentation>port of loading (un location code)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="LadeHafenText">
        <xs:annotation>
          <xs:documentation>port of loading (long text)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element name="LoeschHafen">
        <xs:annotation>
          <xs:documentation>port of discharge (un-location code)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="5" fixed="true" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="LoeschHafenText">
        <xs:annotation>
          <xs:documentation>port of discharge (long text)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="EndbestimmungsHafen">
        <xs:annotation>
          <xs:documentation>port of origin (un location code)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="EndbestimmungsHafenText">
        <xs:annotation>
          <xs:documentation>port of origin (long text)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="EndbestimmungsOrtCode">
        <xs:annotation>
          <xs:documentation>place of origin (un location code)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="EndbestimmungsOrtText">
        <xs:annotation>
          <xs:documentation>place of origin (long text)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="KontaktpersonType">
    <xs:sequence>
      <xs:element minOccurs="0" name="Name">
        <xs:annotation>
          <xs:documentation>name</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="70" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Telefon">
        <xs:annotation>
          <xs:documentation>telephon number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Fax">
        <xs:annotation>
          <xs:documentation>fax number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Email">
        <xs:annotation>
          <xs:documentation>email address</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="KontaktTyp">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="declarant" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="KundennummerType">
    <xs:sequence>
      <xs:element minOccurs="0" name="Nummer">
        <xs:annotation>
          <xs:documentation>number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="8" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:sequence minOccurs="0">
        <xs:element minOccurs="0" name="Umschlag">
          <xs:annotation>
            <xs:documentation>warehouse / terminal</xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="Tally">
          <xs:annotation>
            <xs:documentation>tallyman</xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string" />
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragGefahrgutLandType">
    <xs:sequence>
      <xs:element minOccurs="0" name="LandKZ">
        <xs:annotation>
          <xs:documentation>flag for landtransport (dangerous goods)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="J" />
            <xs:enumeration value="N" />
            <xs:enumeration value="A" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="StoffNr">
        <xs:annotation>
          <xs:documentation>un-no for land transport (dangerous goods)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="4" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Listengut">
        <xs:annotation>
          <xs:documentation>list goods</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="130" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="GefahrNr">
        <xs:annotation>
          <xs:documentation>hazard number (Kemler No.)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="GGVSKlasse">
        <xs:annotation>
          <xs:documentation>GGVS Class</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="4" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="GGVSZiffer">
        <xs:annotation>
          <xs:documentation>GGVS No.</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:minInclusive value="1" />
            <xs:maxInclusive value="999999" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragLKWDatenType">
    <xs:sequence>
      <xs:element minOccurs="0" name="VTKennzeichen">
        <xs:annotation>
          <xs:documentation>pre-carrier truck licence number, vessel name (barge) or waggon no.
                    </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="VTAnhaenger">
        <xs:annotation>
          <xs:documentation>pre-carrier license number trailer (truck)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="VTNationalitaet">
        <xs:annotation>
          <xs:documentation>pre-carrier nationality</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="VTDBHCode">
        <xs:annotation>
          <xs:documentation>pre-carrier trucker dbh code</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="VTFirma">
        <xs:annotation>
          <xs:documentation>pre-carrier truck company</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Chassis">
        <xs:annotation>
          <xs:documentation>chassis no</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragLocationenType">
    <xs:sequence>
      <xs:element minOccurs="0" name="SchuppenCode">
        <xs:annotation>
          <xs:documentation>warehouse code</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="4" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Hafen" type="HafenauftragHafenType">
        <xs:annotation>
          <xs:documentation>port</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragMasseGewichteType">
    <xs:choice minOccurs="0" maxOccurs="unbounded">
      <xs:element minOccurs="0" name="Gewichte" type="HafenauftragGewichteType">
        <xs:annotation>
          <xs:documentation>weights</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:choice>
        <xs:element minOccurs="0" name="Ueberstaende" type="HafenauftragMasseType">
          <xs:annotation>
            <xs:documentation>offstandards</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:sequence>
          <xs:element minOccurs="0" name="Volumen" type="HafenauftragVolumenType">
            <xs:annotation>
              <xs:documentation>volume</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element minOccurs="0" name="Masse" type="HafenauftragMasseType">
            <xs:annotation>
              <xs:documentation>mass</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:choice>
    </xs:choice>
  </xs:complexType>
  <xs:complexType name="HafenauftragMasseType">
    <xs:sequence>
      <xs:element minOccurs="0" name="Laenge-Einheit">
        <xs:annotation>
          <xs:documentation>lenght unit</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="cm" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Laenge-Mass">
        <xs:annotation>
          <xs:documentation>length</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:short" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Breite-Einheit">
        <xs:annotation>
          <xs:documentation>width unit</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="cm" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Breite-Mass">
        <xs:annotation>
          <xs:documentation>width</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:short" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Hoehe-Einheit">
        <xs:annotation>
          <xs:documentation>height unit</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="cm" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Hoehe-Mass">
        <xs:annotation>
          <xs:documentation>height</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:short" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" maxOccurs="1" name="Masseinheit">
        <xs:annotation>
          <xs:documentation>ALPO 4.0 unit of measurement</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="cm" />
            <xs:enumeration value="CM" />
            <xs:enumeration value="f" />
            <xs:enumeration value="F" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" maxOccurs="1" name="Links">
        <xs:annotation>
          <xs:documentation>ALPO 4.0 left oversize</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:minInclusive value="0" />
            <xs:maxInclusive value="999" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" maxOccurs="1" name="Rechts">
        <xs:annotation>
          <xs:documentation>ALPO 4.0 right oversize</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:minInclusive value="0" />
            <xs:maxInclusive value="999" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" maxOccurs="1" name="Hoehe">
        <xs:annotation>
          <xs:documentation>ALPO 4.0 height oversize</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:minInclusive value="0" />
            <xs:maxInclusive value="999" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" maxOccurs="1" name="Hinten">
        <xs:annotation>
          <xs:documentation>ALPO 4.0 back oversize</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:minInclusive value="0" />
            <xs:maxInclusive value="999" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" maxOccurs="1" name="Vorn">
        <xs:annotation>
          <xs:documentation>ALPO 4.0 front oversize</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:minInclusive value="0" />
            <xs:maxInclusive value="999" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragPositionDatenType">
    <xs:sequence>
      <xs:element maxOccurs="9999" name="WarenVerpackungsDaten" type="HafenauftragWarenVerpackungDatenType">
        <xs:annotation>
          <xs:documentation>equipment and goods data</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="StatusmeldungPSAReferenzType">
    <xs:sequence>
      <xs:element name="PSANachrichtReferenz">
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragGefahrgutRadioaktivType">
    <xs:sequence>
      <xs:element minOccurs="0" name="VerpackungstypCode">
        <xs:annotation>
          <xs:documentation>package type code hazmat class 1 (radioactive)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="4" />
            <xs:enumeration value="B(U)" />
            <xs:enumeration value="B(M)" />
            <xs:enumeration value="IND" />
            <xs:enumeration value="A" />
            <xs:enumeration value="SON" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="AktivBQ">
        <xs:annotation>
          <xs:documentation>active BQ (dangerous good)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:int" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="BFSNR">
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Kategorie">
        <xs:annotation>
          <xs:documentation>category</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="MassRadioaktCode">
        <xs:annotation>
          <xs:documentation>mass radioactive code</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="1" />
            <xs:enumeration value="G" />
            <xs:enumeration value="T" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="TransportIndex">
        <xs:annotation>
          <xs:documentation>transport index Hazmat class 1</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:decimal" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="KritikalitaetsIndex">
        <xs:annotation>
          <xs:documentation>critical index</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:decimal" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Vertraeglichkeit">
        <xs:annotation>
          <xs:documentation>compatibility</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:length value="1" fixed="true" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="BlattNr">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="2" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragReferenzenType">
    <xs:choice>
      <xs:sequence>
        <xs:element name="Sender">
          <xs:annotation>
            <xs:documentation>sender (S-Number)</xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:maxLength value="8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="Abteilung" type="HafenauftragReferenzenAbteilungType" />
        <xs:element name="SpeditionsbuchNr">
          <xs:annotation>
            <xs:documentation>file number (house number)</xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
      <xs:sequence>
        <xs:element name="Abteilung" type="HafenauftragReferenzenAbteilungType" />
        <xs:element minOccurs="0" name="FOB-Position" type="xs:string">
          <xs:annotation>
            <xs:documentation>file number (free-on-bord partner)</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:sequence>
    </xs:choice>
  </xs:complexType>
  <xs:complexType name="HafenauftragSchiffIdentifikationType">
    <xs:sequence>
      <xs:element minOccurs="0" name="SIS-NR">
        <xs:annotation>
          <xs:documentation>ship indentification system number (bht/zapp)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="SchiffsName">
        <xs:annotation>
          <xs:documentation>name of vessel</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="30" fixed="true" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Reisenummer">
        <xs:annotation>
          <xs:documentation>voyage number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="AdresseBA" type="HafenauftragSchiffAdresseType">
        <xs:annotation>
          <xs:documentation>address booking agent</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="AdresseCA" type="HafenauftragSchiffAdresseType">
        <xs:annotation>
          <xs:documentation>address carrier</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="SchiffsDaten" type="HafenauftragSchiffDatenType">
        <xs:annotation>
          <xs:documentation>vessel additional information</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragSchiffDatenType">
    <xs:sequence>
      <xs:element minOccurs="0" name="LloydsNr">
        <xs:annotation>
          <xs:documentation>llodys register number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Rufzeichen">
        <xs:annotation>
          <xs:documentation>call sign</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="DatumETS" type="DateType">
        <xs:annotation>
          <xs:documentation>date ets</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="DatumETA" type="DateType">
        <xs:annotation>
          <xs:documentation>date eta</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="SenderDatenType">
    <xs:sequence>
      <xs:element minOccurs="0" name="Firma">
        <xs:annotation>
          <xs:documentation>name of company</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="30" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Kontaktperson" type="KontaktpersonType">
        <xs:annotation>
          <xs:documentation>contact person</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="SENDERType">
    <xs:annotation>
      <xs:documentation>the sender of the order</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ID_SENDERSYSTEM">
        <xs:annotation>
          <xs:documentation>id of sender system</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="8" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="SENDER_REFERENZ">
        <xs:annotation>
          <xs:documentation>sender referenz (reference of dbh system)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="50" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Benutzer_ID">
        <xs:annotation>
          <xs:documentation>User ID of ALPO</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="50" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragWarenSpezifikationType">
    <xs:sequence>
      <xs:element minOccurs="0" name="Identifikation">
        <xs:annotation>
          <xs:documentation>identification / Container-No.</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="12" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="ContainerType">
        <xs:annotation>
          <xs:documentation>container type (iso size code)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="4" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Bauart">
        <xs:annotation>
          <xs:documentation>construction code</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="2" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="ContLaenge">
        <xs:annotation>
          <xs:documentation>container length</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="2" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="ContHoehe">
        <xs:annotation>
          <xs:documentation>container height</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="2" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="ContBemerkung">
        <xs:annotation>
          <xs:documentation>container remarks to carrier</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="ShipperOwned">
        <xs:annotation>
          <xs:documentation>flag shipper' own container</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="true" />
            <xs:enumeration value="TRUE" />
            <xs:enumeration value="True" />
            <xs:enumeration value="false" />
            <xs:enumeration value="FALSE" />
            <xs:enumeration value="False" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="LeerContainer">
        <xs:annotation>
          <xs:documentation>flag empty container</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="false" />
            <xs:enumeration value="False" />
            <xs:enumeration value="FALSE" />
            <xs:enumeration value="true" />
            <xs:enumeration value="TRUE" />
            <xs:enumeration value="True" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="MasseGewichte" type="HafenauftragMasseGewichteType">
        <xs:annotation>
          <xs:documentation>mass and weight</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="Handhabung">
        <xs:annotation>
          <xs:documentation>handling</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="ContainerZusatzangaben" type="HafenauftragContainerZusatzangabenType">
        <xs:annotation>
          <xs:documentation>additional container details</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="ZappContainerCode">
        <xs:annotation>
          <xs:documentation>Zapp container packing code</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="2" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="eBalieStandartDocumentKopfType">
    <xs:sequence>
      <xs:element name="SenderDaten" type="SenderDatenType">
        <xs:annotation>
          <xs:documentation>information about sender</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="DokumentZusatz" type="eBalieDokumentZusatzType">
        <xs:annotation>
          <xs:documentation>additional details</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ECSStandardDokumentType">
    <xs:sequence>
      <xs:element name="Bearbeitungszustand">
        <xs:annotation>
          <xs:documentation>handling state</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="New" />
            <xs:enumeration value="NewAndSend" />
            <xs:enumeration value="NEW" />
            <xs:enumeration value="NEWANDSEND" />
            <xs:enumeration value="NEU" />
            <xs:enumeration value="NEU_SENDEN" />
            <xs:enumeration value="Neu" />
            <xs:enumeration value="Neu_Senden" />
            <xs:enumeration value="CANCELATION" />
            <xs:enumeration value="Cancelation" />
            <xs:enumeration value="STORNO" />
            <xs:enumeration value="Storno" />
            <xs:enumeration value="Replace" />
            <xs:enumeration value="REPLACE" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="StandardDokumentKopf" type="eBalieStandartDocumentKopfType">
        <xs:annotation>
          <xs:documentation>document / message header</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DokumentDaten" type="ECSDokumentDatenType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="StatusmeldungType">
    <xs:annotation>
      <xs:documentation>status message</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StatusTyp">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="ACKNOWLEDGE" />
            <xs:enumeration value="ACKNOWLEDGECANCELATION" />
            <xs:enumeration value="REJECTED" />
            <xs:enumeration value="DELETED" />
            <xs:enumeration value="BHT" />
            <xs:enumeration value="ZAPP" />
            <xs:enumeration value="ECS" />
            <xs:enumeration value="PSA" />
            <xs:enumeration value="APCS">
              <xs:annotation>
                <xs:appinfo>Antwerp Port Community System
                                </xs:appinfo>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="StatusAm" type="ZeitstempelType">
        <xs:annotation>
          <xs:documentation>Timestamp of message</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="StatusTypDetails">
        <xs:annotation>
          <xs:documentation>details of status type</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="99" name="DetailsZeile">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="70" fixed="true" />
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" name="SENDER_REFERENZ">
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element name="EMPFAENGER_REFERENZ">
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="HafenReferenz" type="StatusmeldungHafenReferenzType" />
      <xs:element minOccurs="0" name="AuftragStatus">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:length value="3" fixed="true" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="AuftragStatusText" type="xs:string" />
      <xs:element minOccurs="0" name="StatusDetails">
        <xs:annotation>
          <xs:documentation>details of status (BHT / ZAPP)</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="99" name="DetailsZeile">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="70" fixed="true" />
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" name="Auftragsdaten" type="StatusmeldungAuftragdatenType">
        <xs:annotation>
          <xs:documentation>only on status "AUB" (BHT) or "BOK"/"ZOK" (ZAPP)</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragUmschlaghinweiseType">
    <xs:sequence>
      <xs:element minOccurs="0" name="Lagerung">
        <xs:annotation>
          <xs:documentation>storage</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="USP-Codes">
        <xs:annotation>
          <xs:documentation>special handling codes</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:length value="2" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="HinweisCode1">
        <xs:annotation>
          <xs:documentation>remark code 1</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="3" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="HinweisCode2">
        <xs:annotation>
          <xs:documentation>remark code 2</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="3" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="HinweisCode3">
        <xs:annotation>
          <xs:documentation>remark code 43</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="3" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragVolumenType">
    <xs:sequence>
      <xs:element name="Einheit">
        <xs:annotation>
          <xs:documentation>unit</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="cbm" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Wert">
        <xs:annotation>
          <xs:documentation>amount</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:decimal">
            <xs:totalDigits value="9" />
            <xs:fractionDigits value="3" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragVorNachTransportType">
    <xs:sequence>
      <xs:element name="Verkehrstraeger">
        <xs:annotation>
          <xs:documentation>transport type</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="BARGE"/>
            <xs:enumeration value="SHIP"/>
            <xs:enumeration value="CHASSIS"/>
            <xs:enumeration value="RAIL"/>
            <xs:enumeration value="TRUCK"/>
            <xs:enumeration value="Barge"/>
            <xs:enumeration value="Ship"/>
            <xs:enumeration value="Chassis"/>
            <xs:enumeration value="Rail"/>
            <xs:enumeration value="Truck"/>
            <xs:enumeration value="barge"/>
            <xs:enumeration value="ship"/>
            <xs:enumeration value="chassis"/>
            <xs:enumeration value="rail"/>
            <xs:enumeration value="truck"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="LKWDaten" type="HafenauftragLKWDatenType">
        <xs:annotation>
          <xs:documentation>truck data</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="BahnDaten" type="HafenauftragBahnDatenType">
        <xs:annotation>
          <xs:documentation>rail data</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="BischiDaten" type="HafenauftragBischiDatenType">
        <xs:annotation>
          <xs:documentation>barge data</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragWarenAngabenType">
    <xs:sequence>
      <xs:element minOccurs="0" name="Anzahl">
        <xs:annotation>
          <xs:documentation>amount</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:integer">
            <xs:minInclusive value="1" />
            <xs:maxInclusive value="999999" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="VerpackungsArt">
        <xs:annotation>
          <xs:documentation>package type (UnRec 21)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="2" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Warenbeschreibung">
        <xs:annotation>
          <xs:documentation>good description</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="240" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="BLGWaCo">
        <xs:annotation>
          <xs:documentation>blg goods code (special code list)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="4" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="MarksNos">
        <xs:annotation>
          <xs:documentation>marks and nos</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="432" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="FahrzeugID">
        <xs:annotation>
          <xs:documentation>vessel id</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="20" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Zubehoer">
        <xs:annotation>
          <xs:documentation>ZAPP: for vehicles with additional items</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="MasseGewichte" type="HafenauftragMasseGewichteType">
        <xs:annotation>
          <xs:documentation>mass and weight</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="Umschlagshinweise" type="HafenauftragUmschlaghinweiseType">
        <xs:annotation>
          <xs:documentation>handling instructions</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="ZusatzAngaben" type="HafennauftragZusatzAngabenType">
        <xs:annotation>
          <xs:documentation>addtional information transport items</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:choice>
        <xs:sequence>
          <xs:element minOccurs="0" name="GefahrgutPositionen">
            <xs:annotation>
              <xs:documentation>dangerous good items</xs:documentation>
            </xs:annotation>
            <xs:complexType>
              <xs:sequence>
                <xs:element maxOccurs="9999" name="GefahrgutDaten" type="HafenauftragGefahrgutDatenType">
                  <xs:annotation>
                    <xs:documentation>data of dangerous goods</xs:documentation>
                  </xs:annotation>
                </xs:element>
              </xs:sequence>
            </xs:complexType>
          </xs:element>
          <xs:element minOccurs="0" name="ZollPositionen">
            <xs:annotation>
              <xs:documentation>customs items</xs:documentation>
            </xs:annotation>
            <xs:complexType>
              <xs:sequence>
                <xs:element maxOccurs="9999" name="ZollDaten" type="HafenauftragZollDatenType">
                  <xs:annotation>
                    <xs:documentation>customs data</xs:documentation>
                  </xs:annotation>
                </xs:element>
              </xs:sequence>
            </xs:complexType>
          </xs:element>
          <xs:element minOccurs="0" name="ASumADatenBHT">
            <xs:annotation>
              <xs:documentation>ASumA data for BHT order</xs:documentation>
            </xs:annotation>
            <xs:complexType>
              <xs:sequence>
                <xs:element maxOccurs="999" name="ASumAKopf" type="BHTASumAKopfType">
                  <xs:annotation>
                    <xs:documentation>ASumA head</xs:documentation>
                  </xs:annotation>
                </xs:element>
              </xs:sequence>
            </xs:complexType>
          </xs:element>
        </xs:sequence>
        <xs:element minOccurs="0" name="SammelReferenzenZapp">
          <xs:annotation>
            <xs:documentation>Nur Zapp: Angabe von Zapp-Referenzen für Sammel-Aufträge (nur gültig, wenn
                            Angabe ZappSammelAuftrag ist True)
                        </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element minOccurs="1" maxOccurs="999" name="SammelReferenz" type="SammelReferenzZappType" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragWarenDatenType">
    <xs:sequence>
      <xs:element name="Zaehler">
        <xs:annotation>
          <xs:documentation>counter</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:minInclusive value="1" />
            <xs:maxInclusive value="9999" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Bemerkungen">
        <xs:annotation>
          <xs:documentation>remark</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="288" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Gefahrgut">
        <xs:annotation>
          <xs:documentation>dangerous good (Flag for Transport)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="False" />
            <xs:enumeration value="True" />
            <xs:enumeration value="true" />
            <xs:enumeration value="false" />
            <xs:enumeration value="TRUE" />
            <xs:enumeration value="FALSE" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Markierung">
        <xs:annotation>
          <xs:documentation>marks</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="432" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="WarenAngaben" type="HafenauftragWarenAngabenType">
        <xs:annotation>
          <xs:documentation>good information</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragWarenVerpackungDatenType">
    <xs:sequence>
      <xs:element name="Zaehler">
        <xs:annotation>
          <xs:documentation>counter</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:minInclusive value="1" />
            <xs:maxInclusive value="9999" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Bemerkungen">
        <xs:annotation>
          <xs:documentation>remarks</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="288" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Gefahrgut">
        <xs:annotation>
          <xs:documentation>flag dangerous good</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="False" />
            <xs:enumeration value="true" />
            <xs:enumeration value="false" />
            <xs:enumeration value="TRUE" />
            <xs:enumeration value="FALSE" />
            <xs:enumeration value="True" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Spezifikation" type="HafenauftragWarenSpezifikationType">
        <xs:annotation>
          <xs:documentation>Specification - If your order is a container or LCL shipment (Less than Container
                        Load), you have to provide your data (e.g. packing code) in the child nodes of this segment.
                    </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="WarenPositionen">
        <xs:annotation>
          <xs:documentation>Good items - If your shipment is a conventional or groupage shipment, all data has
                        to be provided in the child nodes of this segment.
                    </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="9999" name="WarenDaten" type="HafenauftragWarenDatenType">
              <xs:annotation>
                <xs:documentation>goods data</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragZappAdresseType">
    <xs:sequence>
      <xs:element name="Name">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Adresse1">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Adresse2">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Adresse3">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Adresse4">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="StatusmeldungZAPPReferenzType">
    <xs:sequence>
      <xs:element name="ZAPP-Referenz">
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ZeitstempelType">
    <xs:annotation>
      <xs:documentation>complexType for definding the timestamp of message</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Tag" type="xs:date">
        <xs:annotation>
          <xs:documentation>Date</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Zeit" type="xs:time">
        <xs:annotation>
          <xs:documentation>Time</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragZollDatenBHTType">
    <xs:sequence>
      <xs:element name="ZollZaehler">
        <xs:annotation>
          <xs:documentation>counter for custom segments</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:minInclusive value="1" />
            <xs:maxInclusive value="9999" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="VersandStatus">
        <xs:annotation>
          <xs:documentation>custom rule</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="5" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="BefreiMerkmal">
        <xs:annotation>
          <xs:documentation>exemption mark (custom BHT)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:decimal">
            <xs:minInclusive value="1" />
            <xs:maxInclusive value="9999" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="AusfuehrerName">
        <xs:annotation>
          <xs:documentation>exporter</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="75" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Herkunftsland">
        <xs:annotation>
          <xs:documentation>country of origin (UN-Countrycodes)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="2" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Bestimmungsland">
        <xs:annotation>
          <xs:documentation>country of destination (un country code)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="2" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Warenbeschreibung">
        <xs:annotation>
          <xs:documentation>good description</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="240" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Ausfuhrzollstelle">
        <xs:annotation>
          <xs:documentation>export custom office</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="StatWarennr">
        <xs:annotation>
          <xs:documentation>statistic good number (custom)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="8" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="ZollamtGeprueft">
        <xs:annotation>
          <xs:documentation>checked by customs office</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="true" />
            <xs:enumeration value="false" />
            <xs:enumeration value="True" />
            <xs:enumeration value="False" />
            <xs:enumeration value="TRUE" />
            <xs:enumeration value="FALSE" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Vorpapier">
        <xs:annotation>
          <xs:documentation>pre customs document number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="50" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Bewilligungsnr">
        <xs:annotation>
          <xs:documentation>allowence number (custom)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="75" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Warenempfaenger">
        <xs:annotation>
          <xs:documentation>goods receipient (consignee)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="75" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragZollDatenType">
    <xs:sequence>
      <xs:element name="ZollPosZaehler">
        <xs:annotation>
          <xs:documentation>counter customs items</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:minInclusive value="1" />
            <xs:maxInclusive value="9999" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:choice>
        <xs:element minOccurs="0" name="ZollDatenBHT" type="HafenauftragZollDatenBHTType">
          <xs:annotation>
            <xs:documentation>custom data BHT (non AES)</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element minOccurs="0" name="ZollDatenZapp" type="HafenauftragZollDatenZappType">
          <xs:annotation>
            <xs:documentation>custom data ZAPP (used for non AES Data and ASUMA Data without MRN)
                        </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element minOccurs="0" name="AESZollDaten" type="HafenauftragZollDatenAESType">
          <xs:annotation>
            <xs:documentation>AES custom data BHT / ZAPP + ZAPP ASUMA Data with MRN</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafenauftragZollDatenZappType">
    <xs:sequence>
      <xs:element name="ZollZaehler">
        <xs:annotation>
          <xs:documentation>counter for custom segments</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:minInclusive value="1" />
            <xs:maxInclusive value="9999" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="ArtAnmeldung">
        <xs:annotation>
          <xs:documentation>kind of declaration (ZAPP custom rule) - Use 'DUX' for ASumA - Data without MRN
                    </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="AUS" />
            <xs:enumeration value="aus" />
            <xs:enumeration value="DUX" />
            <xs:enumeration value="dux" />
            <xs:enumeration value="EUB" />
            <xs:enumeration value="eub" />
            <xs:enumeration value="MIT" />
            <xs:enumeration value="mit" />
            <xs:enumeration value="SBF" />
            <xs:enumeration value="sbf" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Verfahrenscode">
        <xs:annotation>
          <xs:documentation>custom rule layout e.g. 1040</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="4" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="AdresseAnmelder" type="HafenauftragZappAdresseType">
        <xs:annotation>
          <xs:documentation>address declarant</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="AdresseAusfuehrer" type="HafenauftragZappAdresseType">
        <xs:annotation>
          <xs:documentation>address exporter (consignor)</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="Herkunftsland">
        <xs:annotation>
          <xs:documentation>country of origin (UN-Countrycodes)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="2" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Bestimmungsland">
        <xs:annotation>
          <xs:documentation>country of destination (un country code)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="2" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="ZollPos">
        <xs:annotation>
          <xs:documentation>custom item / position at custom document</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:minInclusive value="1" />
            <xs:maxInclusive value="999" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Warenbeschreibung">
        <xs:annotation>
          <xs:documentation>good description</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="240" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="StatWarennr">
        <xs:annotation>
          <xs:documentation>statistic good number (custom)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="8" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Eigenmasse">
        <xs:annotation>
          <xs:documentation>net weight</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:decimal">
            <xs:totalDigits value="11" />
            <xs:fractionDigits value="3" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Rohmasse">
        <xs:annotation>
          <xs:documentation>raw weight</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:decimal">
            <xs:totalDigits value="11" />
            <xs:fractionDigits value="3" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="MerkmalStempel">
        <xs:annotation>
          <xs:documentation>mark stamp</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="true" />
            <xs:enumeration value="false" />
            <xs:enumeration value="True" />
            <xs:enumeration value="False" />
            <xs:enumeration value="TRUE" />
            <xs:enumeration value="FALSE" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Vorpapier">
        <xs:annotation>
          <xs:documentation>pre customs document number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="50" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Vermerke">
        <xs:annotation>
          <xs:documentation>remarks</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="225" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Marktordnungsware">
        <xs:annotation>
          <xs:documentation>goods market regulations</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="WarenWert">
        <xs:annotation>
          <xs:documentation>good value</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="AKMVorlageBefreit">
        <xs:annotation>
          <xs:documentation>not used</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="GVDEVorhanden">
        <xs:annotation>
          <xs:documentation>not used</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="GVDE">
        <xs:annotation>
          <xs:documentation>not used</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="SonstBefreiung">
        <xs:annotation>
          <xs:documentation>other exemptions</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="TRUE" />
            <xs:enumeration value="True" />
            <xs:enumeration value="true" />
            <xs:enumeration value="FALSE" />
            <xs:enumeration value="False" />
            <xs:enumeration value="false" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="NummernAM">
        <xs:annotation>
          <xs:documentation>number at custom declaration</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="18" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="RegistrierNr">
        <xs:annotation>
          <xs:documentation>register number (ZAPP
                        custom: DOK / MOW)
                        When kind of declaration = MIT: ATB-referencenumber
                    </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="25" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Abgabeunternehmen">
        <xs:annotation>
          <xs:documentation>ZAPP specific when kind of declaration MIT: SumA company</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="175" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="ASumaMRN">
        <xs:annotation>
          <xs:documentation>ZAPP specific when kind of declaration MIT: EXS ASumA MRN</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="18" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Empfaenger">
        <xs:annotation>
          <xs:documentation>ZAPP specifict when kind of declaration = MIT: receiver of goods
                    </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="175" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="ESumaMRN">
        <xs:annotation>
          <xs:documentation>ZAPP specific when kind of declaration = MIT: ICS ESumA MRN or reference of annex
                        30A data
                    </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="18" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="SumaArt">
        <xs:annotation>
          <xs:documentation>ZAPP specific when kind of declaration=MIT: Kind of SumA</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:length value="1" />
            <xs:enumeration value="N" />
            <xs:enumeration value="V" />
            <xs:enumeration value="E" />
            <xs:enumeration value="A" />
            <xs:enumeration value="n" />
            <xs:enumeration value="v" />
            <xs:enumeration value="e" />
            <xs:enumeration value="a" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="SumaBefreiungsgrund">
        <xs:annotation>
          <xs:documentation>ZAPP specific when kind of declaration=MIT: release reason from ASumA
                    </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:length value="1" />
            <xs:enumeration value="0" />
            <xs:enumeration value="2" />
            <xs:enumeration value="3" />
            <xs:enumeration value="4" />
            <xs:enumeration value="6" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="SumaBefreiungsfall">
        <xs:annotation>
          <xs:documentation>not used</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="3" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Notfallverfahren">
        <xs:annotation>
          <xs:documentation>flag for ATLAS failure breakdown, Masterticket send in field ESumaMRN
                    </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="TRUE" />
            <xs:enumeration value="True" />
            <xs:enumeration value="true" />
            <xs:enumeration value="FALSE" />
            <xs:enumeration value="False" />
            <xs:enumeration value="false" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="ASumAVersender">
        <xs:annotation>
          <xs:documentation>ZAPP specific when kind of declaration=DUX (DUX without MRN)</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:choice>
            <xs:annotation>
              <xs:documentation>EORI or full adress</xs:documentation>
            </xs:annotation>
            <xs:element name="EORI">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="17" />
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:sequence>
              <xs:element name="Name">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="35" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Strasse">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="35" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Ort">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="35" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Postleitzahl">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="35" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Land">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="35" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:choice>
        </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" name="ASumAWarenEmpfaenger">
        <xs:annotation>
          <xs:documentation>ZAPP specific when kind of declaration=DUX (DUX without MRN)</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:choice>
            <xs:annotation>
              <xs:documentation>EORI or full adress</xs:documentation>
            </xs:annotation>
            <xs:element name="EORI">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="17" />
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:sequence>
              <xs:element name="Name">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="35" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Strasse">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="35" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Ort">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="35" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Postleitzahl">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="35" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Land">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="35" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:choice>
        </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" name="ASumAAnmelder">
        <xs:annotation>
          <xs:documentation>ZAPP specific when kind of declaration=DUX (DUX without MRN)</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Name">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="35" />
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="Ort">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="35" />
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
       <xs:element minOccurs="0" name="ASumABefoerderer">
        <xs:annotation>
          <xs:documentation>ZAPP specific when kind of declaration=DUX (DUX without MRN)</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="EORI">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="17" />
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" name="ASumATransportdokumente">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="99" name="ASumATransportdokument" type="ZappASumAUnterlageType">
              <xs:annotation>
                <xs:documentation>ZAPP specific when kind of declaration=DUX (DUX without MRN)</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" name="ASumAGefahrgueter">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="99" name="ASumAGefahrgut" type="ASumAGefahrgutType">
              <xs:annotation>
                <xs:documentation>ZAPP specific when kind of declaration=DUX (DUX without MRN)</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" name="ASumAVerfahrensuebergang">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="99" name="ASumAWarenpositionsverweis" type="ASumAVerfahrensuebergangWarenpositionsverweisType">
              <xs:annotation>
                <xs:documentation>ZAPP specific when kind of declaration=DUX (DUX without MRN)</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ECSZollDokumentType">
    <xs:sequence>
      <xs:element name="DokumentArt">
        <xs:annotation>
          <xs:documentation>kind of document like MRN Type AES export document or NCTS document
                        Possible values are:
                         CO (Community goods declaration)
                         EX (export MRN ECS)
                         EU (Goods declaration for exportation to EFTA-countries)
                         821 (Community customs transport T1 with destination port of loading)
                         822 (Community customs transport T2 with destination port of loading)
                    </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="5" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="DokumentReferenz">
        <xs:annotation>
          <xs:documentation>reference of document</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="27" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HafennauftragZusatzAngabenType">
    <xs:sequence>
      <xs:element minOccurs="0" name="TransportTemp">
        <xs:annotation>
          <xs:documentation>transport temperature</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Freistellnummer">
        <xs:annotation>
          <xs:documentation>import clearing number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="OrderNummer">
        <xs:annotation>
          <xs:documentation>order number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string" />
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="APCSType">
    <xs:sequence>
      <xs:element name="APCSOrder" type="APCSOrderType">
        <xs:annotation>
          <xs:documentation>customs/port order APCS (Antwerp Port Communty System)</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="SOLASOrderType">
    <xs:annotation>
      <xs:documentation>complexType for SOLAS order</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element minOccurs="0" name="auftragsNr">
        <xs:annotation>
          <xs:documentation>foreign key/ ordernumber</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="32" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="status">
        <xs:annotation>
          <xs:documentation>Fix: Senden = Add SOLAS order to ALPO an send SOLAS data immediately to EDI
                        Service. Fix: Anlegen = Only add SOLAS order to ALPO without sending SOLAS data to EDIService.
                    </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="Anlegen" />
            <xs:enumeration value="Senden" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="ID_SENDERSYSTEM">
        <xs:annotation>
          <xs:documentation>id of sender system</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Benutzer_ID">
        <xs:annotation>
          <xs:documentation>User ID of ALPO</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="erfassungsDatum" type="xs:dateTime">
        <xs:annotation>
          <xs:documentation>creation date</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="sendeDatum" type="xs:dateTime">
        <xs:annotation>
          <xs:documentation>send date</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="bezugsNr">
        <xs:annotation>
          <xs:documentation>reference number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="32" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="quelle">
        <xs:annotation>
          <xs:documentation>source</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="32" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="verantwortlichePerson" type="SOLASVerantwortlichePersonType">
        <xs:annotation>
          <xs:documentation>responsible party</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="empfaenger" type="SOLASEmpfaengerType">
        <xs:annotation>
          <xs:documentation>receiver</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="1" name="vgmContainerNr">
        <xs:annotation>
          <xs:documentation>Containernumber</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="11" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="isoCode">
        <xs:annotation>
          <xs:documentation>container type (ISO code)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="4" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="shippersowned" type="xs:boolean">
        <xs:annotation>
          <xs:documentation>flag shipper's owned container</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="buchungsNr">
        <xs:annotation>
          <xs:documentation>booking number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="32" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="vgmGewicht">
        <xs:annotation>
          <xs:documentation>VGM weight in KG</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:integer">
            <xs:minInclusive value="0" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="vgmGewichtErmittlung">
        <xs:annotation>
          <xs:documentation>Fix: SM1 -&gt;
                        SOLAS verification method 1
                        Fix: SM2 -&gt;
                        SOLAS verification method 2
                    </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="3" />
            <xs:enumeration value="SM1" />
            <xs:enumeration value="SM2" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="dokumentNr">
        <xs:annotation>
          <xs:documentation>certificate or weighing note</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="32" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="dokumentDatum" type="xs:dateTime">
        <xs:annotation>
          <xs:documentation>date of certiificate or weighing note</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="ladehafen">
        <xs:annotation>
          <xs:documentation>Port of loading (UN Location Code)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="5" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="ets" type="xs:date">
        <xs:annotation>
          <xs:documentation>date ETS</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="bestimmungshafen">
        <xs:annotation>
          <xs:documentation>Port of discharge (UN Location code)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="5" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="blNr">
        <xs:annotation>
          <xs:documentation>bill of lading - number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="32" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="schiffsname">
        <xs:annotation>
          <xs:documentation>name of vessle</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="64" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="reiseNr">
        <xs:annotation>
          <xs:documentation>voyage number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="16" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="siegelnummerList" type="SOLASSiegelnummerListType">
        <xs:annotation>
          <xs:documentation>list of seal numbers</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="spediteur" type="SOLASSpediteurType">
        <xs:annotation>
          <xs:documentation>forwarder</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="wiegeFirma" type="SOLASWiegeFirmaType">
        <xs:annotation>
          <xs:documentation>weighing station</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="SOLASVerantwortlichePersonType">
    <xs:annotation>
      <xs:documentation>complexType for responsible person within SOALS order</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="verantwortlicherName">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="64" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="verantwortlicherFirma_Name1">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="verantwortlicherFirma_Name2">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="verantwortlicherStrasse">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="verantwortlicherPlz">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="15" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="verantwortlicherOrt">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="20" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="verantwortlicherLand">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="2" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="verantwortlicherEmail">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="128" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="verantwortlicherTelefon">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="32" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="verantwortlicherFax">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="32" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="SOLASEmpfaengerType">
    <xs:sequence>
      <xs:element minOccurs="0" name="empfaengerCode">
        <xs:annotation>
          <xs:documentation>code</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="10" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="empfaengerFirma_Name1">
        <xs:annotation>
          <xs:documentation>company name 1</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="empfaengerFirma_Name2">
        <xs:annotation>
          <xs:documentation>company name 2</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="empfaengerPlz">
        <xs:annotation>
          <xs:documentation>ZIP code</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="15" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="empfaengerOrt">
        <xs:annotation>
          <xs:documentation>city</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="20" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="empfaengerLand">
        <xs:annotation>
          <xs:documentation>country</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="2" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="empfaengerEmail">
        <xs:annotation>
          <xs:documentation>e-mail</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="128" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="ExchangeEmail" type="xs:boolean">
        <xs:annotation>
          <xs:documentation>true/false -&gt; send SOLAS data as E-Mail</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ExchangeEdi" type="xs:boolean">
        <xs:annotation>
          <xs:documentation>true/false -&gt; send SOLAS data as VERMAS-Message</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="SOLASWiegeFirmaType">
    <xs:sequence>
      <xs:element minOccurs="0" name="wiegefirmaFirma_Name1">
        <xs:annotation>
          <xs:documentation>company name 1</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="wiegefirmaFirma_Name2">
        <xs:annotation>
          <xs:documentation>company name 2</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="wiegefirmaPlz">
        <xs:annotation>
          <xs:documentation>ZIP code</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="15" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="wiegefirmaOrt">
        <xs:annotation>
          <xs:documentation>city</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="20" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="wiegefirmaLand">
        <xs:annotation>
          <xs:documentation>country</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="2" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="wiegefirmaName">
        <xs:annotation>
          <xs:documentation>name of responsible person</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="64" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="wiegefirmaEmail">
        <xs:annotation>
          <xs:documentation>e-mail</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="128" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="wiegefirmaTelefon">
        <xs:annotation>
          <xs:documentation>phone</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="32" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="wiegefirmaFax">
        <xs:annotation>
          <xs:documentation>fax</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="32" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="SOLASSpediteurType">
    <xs:sequence>
      <xs:element minOccurs="0" name="spediteurFirma_Name1">
        <xs:annotation>
          <xs:documentation>company name 1</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="spediteurFirma_Name2">
        <xs:annotation>
          <xs:documentation>company name 2</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="spediteurPlz">
        <xs:annotation>
          <xs:documentation>ZIP code</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="15" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="spediteurOrt">
        <xs:annotation>
          <xs:documentation>city</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="20" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="spediteurLand">
        <xs:annotation>
          <xs:documentation>country</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="2" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="spediteurName">
        <xs:annotation>
          <xs:documentation>name of responsible person</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="64" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="spediteurEmail">
        <xs:annotation>
          <xs:documentation>e-mail</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="128" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="spediteurTelefon">
        <xs:annotation>
          <xs:documentation>phone</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="32" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="spediteurFax">
        <xs:annotation>
          <xs:documentation>fax</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="32" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="SOLASSiegelnummerListType">
    <xs:sequence>
      <xs:element maxOccurs="9" name="siegel" type="SOLASSiegelNummerType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="SOLASSiegelNummerType">
    <xs:sequence>
      <xs:element minOccurs="0" name="siegelId">
        <xs:annotation>
          <xs:documentation>code of sealing party</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="AC" />
            <xs:enumeration value="CA" />
            <xs:enumeration value="CU" />
            <xs:enumeration value="SH" />
            <xs:enumeration value="TO" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="siegelnummer">
        <xs:annotation>
          <xs:documentation>seal number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="BHTASumAKopfType">
    <xs:annotation>
      <xs:documentation>complexType for ASumA-Head-Data</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:choice>
        <xs:element minOccurs="0" name="MRN">
          <xs:annotation>
            <xs:documentation>MRN (movement reference number)</xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:maxLength value="18" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:sequence>
          <xs:element name="Anmelder" type="BhtASumAVerantwortlicherType">
            <xs:annotation>
              <xs:documentation>Declarant</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="Vertreter" type="BhtASumAVerantwortlicherType" minOccurs="0">
            <xs:annotation>
              <xs:documentation>Representative</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="Befoerderungsroute">
            <xs:annotation>
              <xs:documentation>shipment route</xs:documentation>
            </xs:annotation>
            <xs:complexType>
              <xs:sequence>
                <xs:element minOccurs="1" name="ASumADurchgangslaender">
                  <xs:annotation>
                    <xs:documentation>transit countries (UN country codes). Must at least include countries of origin and destination</xs:documentation>
                  </xs:annotation>
                  <xs:complexType>
                    <xs:sequence>
                      <xs:element minOccurs="2" maxOccurs="99" name="ASumADurchgangsland" type="BhtASumADurchgangslandType">
                  <xs:annotation>
                          <xs:documentation>transit country</xs:documentation>
                  </xs:annotation>
                      </xs:element>
                    </xs:sequence>
                  </xs:complexType>
                </xs:element>
              </xs:sequence>
            </xs:complexType>
                </xs:element>
          <xs:element minOccurs="0" name="ASumAWirtschaftsbeteiligte">
            <xs:complexType>
              <xs:sequence>
                <xs:element maxOccurs="99" name="ASumAWirtschaftsbeteiligter" type="BhtASumAWirtschaftsbeteiligterType">
                  <xs:annotation>
                    <xs:documentation>additional economic operators</xs:documentation>
                  </xs:annotation>
                </xs:element>
              </xs:sequence>
            </xs:complexType>
          </xs:element>
          <xs:element minOccurs="0" name="ASumAUnterlagen">
            <xs:complexType>
              <xs:sequence>
                <xs:element maxOccurs="99" name="ASumAUnterlage" type="ASumAUnterlageType">
                  <xs:annotation>
                    <xs:documentation>documents</xs:documentation>
                  </xs:annotation>
                </xs:element>
              </xs:sequence>
            </xs:complexType>
          </xs:element>
          <xs:element minOccurs="0" name="ASumASonstigeVerweise">
            <xs:complexType>
              <xs:sequence>
                <xs:element maxOccurs="99" name="ASumASonstigerVerweis" type="ASumAUnterlageType">
                  <xs:annotation>
                    <xs:documentation>other references</xs:documentation>
                  </xs:annotation>
                </xs:element>
              </xs:sequence>
            </xs:complexType>
                </xs:element>
          <xs:element minOccurs="0" name="ASumAZusaetzlicheInformationen">
            <xs:complexType>
              <xs:sequence>
                <xs:element maxOccurs="99" name="ASumAZusaetzlicheInformation" type="BhtASumAZusaetzlicheInformationType">
                  <xs:annotation>
                    <xs:documentation>additional Information</xs:documentation>
                  </xs:annotation>
                </xs:element>
              </xs:sequence>
            </xs:complexType>
                </xs:element>
          <xs:element minOccurs="1" name="ASumATransportdokumente">
            <xs:complexType>
              <xs:sequence>
                <xs:element minOccurs="1" maxOccurs="99" name="ASumATransportdokument" type="ASumAUnterlageType">
                  <xs:annotation>
                    <xs:documentation>transport document</xs:documentation>
                  </xs:annotation>
                </xs:element>
              </xs:sequence>
            </xs:complexType>
          </xs:element>
          <xs:element name="ASumAPositionen">
            <xs:complexType>
              <xs:sequence>
                <xs:element maxOccurs="999" name="ASumAPosition" type="BHTASumAPositionType">
                  <xs:annotation>
                    <xs:documentation>ASumA position</xs:documentation>
                  </xs:annotation>
                </xs:element>
              </xs:sequence>
            </xs:complexType>
          </xs:element>
        </xs:sequence>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="BHTASumAPackstueckType">
    <xs:sequence>
      <xs:element name="Anzahl">
        <xs:annotation>
          <xs:documentation>amount</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:maxInclusive value="99999999" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Versandzeichen">
        <xs:annotation>
          <xs:documentation>mark</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="512" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Verpackungsart">
        <xs:annotation>
          <xs:documentation>package type - Codeliste: siehe www.zoll.de</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="2" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="BHTASumAPositionType">
    <xs:annotation>
      <xs:documentation>complexType for ASumA-Position-Data</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PositionNr">
        <xs:annotation>
          <xs:documentation>position number of ASumA position</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:maxInclusive value="999" />
            <xs:minInclusive value="1" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="KennnummerSendung">
        <xs:annotation>
          <xs:documentation>mark</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Warennummer">
        <xs:annotation>
          <xs:documentation>statistic good number (custom)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="8" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Warenbezeichnung">
        <xs:annotation>
          <xs:documentation>good description</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="512" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Rohmasse">
        <xs:annotation>
          <xs:documentation>raw weight</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:decimal">
            <xs:maxInclusive value="9999999999999999" />
            <xs:fractionDigits value="6" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="CusNummer">
        <xs:annotation>
            <xs:documentation>CUS No.</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
            <xs:restriction base="xs:string">
                <xs:length value="9" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="ZahlungsweiseBefoerderungskosten">
        <xs:annotation>
          <xs:documentation>A=Barzahlung
                        B=Kreditkarte
                        C=Scheck
                        D=Andere(z. B. Kontoabbuchung)
                        H=Elektronischer Zahlungsverkehr
                        Y=Konto beim Befoerderer
                        Z=Keine Vorauszahlung
                    </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="1" />
            <xs:enumeration value="A" />
            <xs:enumeration value="B" />
            <xs:enumeration value="C" />
            <xs:enumeration value="D" />
            <xs:enumeration value="H" />
            <xs:enumeration value="Y" />
            <xs:enumeration value="Z" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Versender">
        <xs:annotation>
          <xs:documentation>Exporter</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:choice>
            <xs:annotation>
              <xs:documentation>EORI number or full adress</xs:documentation>
            </xs:annotation>
            <xs:element name="Identifikationsnummer">
              <xs:annotation>
                <xs:documentation>identification number</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="17" />
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:sequence>
              <xs:element name="Name">
                <xs:annotation>
                  <xs:documentation>name</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="70" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Strasse">
                <xs:annotation>
                  <xs:documentation>street</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="70" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element minOccurs="0" name="Postleitzahl">
                <xs:annotation>
                  <xs:documentation>zip-code</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="17" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Ort">
                <xs:annotation>
                  <xs:documentation>city</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="35" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Land">
                <xs:annotation>
                  <xs:documentation>UN country code</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:choice>
        </xs:complexType>
      </xs:element>
      <xs:element name="Empfaenger">
        <xs:annotation>
          <xs:documentation>consignee</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:choice>
            <xs:annotation>
              <xs:documentation>identification number or full adress</xs:documentation>
            </xs:annotation>
            <xs:element name="Identifikationsnummer">
              <xs:annotation>
                <xs:documentation>identification number</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="17" />
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:sequence>
              <xs:element name="Name">
                <xs:annotation>
                  <xs:documentation>name</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="70" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Strasse">
                <xs:annotation>
                  <xs:documentation>street</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="70" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element minOccurs="0" name="Postleitzahl">
                <xs:annotation>
                  <xs:documentation>zip code</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="17" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Ort">
                <xs:annotation>
                  <xs:documentation>city</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="35" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Land">
                <xs:annotation>
                  <xs:documentation>UN country code</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:choice>
        </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" name="ASumAWirtschaftsbeteiligte">
            <xs:complexType>
                <xs:sequence>
                    <xs:element maxOccurs="99" name="ASumAWirtschaftsbeteiligter" type="BhtASumAWirtschaftsbeteiligterType">
                        <xs:annotation>
                            <xs:documentation>additional economic operators</xs:documentation>
                        </xs:annotation>
                    </xs:element>
                </xs:sequence>
            </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" name="ASumAUnterlagen">
            <xs:complexType>
                <xs:sequence>
                    <xs:element maxOccurs="99" name="ASumAUnterlage" type="ASumAUnterlageType">
                        <xs:annotation>
                            <xs:documentation>documents</xs:documentation>
                        </xs:annotation>
                    </xs:element>
                </xs:sequence>
            </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" name="ASumASonstigeVerweise">
            <xs:complexType>
                <xs:sequence>
                    <xs:element maxOccurs="99" name="ASumASonstigerVerweis" type="ASumAUnterlageType">
                        <xs:annotation>
                            <xs:documentation>other references</xs:documentation>
                        </xs:annotation>
                    </xs:element>
                </xs:sequence>
            </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" name="ASumAZusaetzlicheInformationen">
           <xs:complexType>
               <xs:sequence>
                   <xs:element maxOccurs="99" name="ASumAZusaetzlicheInformation" type="BhtASumAZusaetzlicheInformationType">
                       <xs:annotation>
                           <xs:documentation>additional Information</xs:documentation>
                       </xs:annotation>
                   </xs:element>
               </xs:sequence>
           </xs:complexType>
      </xs:element>
        <xs:element minOccurs="0" name="ASumAGefahrgueter">
            <xs:complexType>
                <xs:sequence>
                    <xs:element maxOccurs="99" name="ASumAGefahrgut" type="ASumAGefahrgutType">
                        <xs:annotation>
                            <xs:documentation>HazMat UN-No.</xs:documentation>
                        </xs:annotation>
                    </xs:element>
                </xs:sequence>
            </xs:complexType>
        </xs:element>
      <xs:choice>
        <xs:element name="GemeinschaftswareOhneVerwahrung">
          <xs:annotation>
            <xs:documentation>EU community goods without temporary storage</xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:enumeration value="true" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="ASumAVerfahrensuebergang">
          <xs:complexType>
            <xs:sequence>
            <xs:element maxOccurs="999" name="ASumAWarenpositionsverweis" type="ASumAVerfahrensuebergangWarenpositionsverweisType">
                <xs:annotation>
                  <xs:documentation>Goods Reference</xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
      <xs:element minOccurs="0" name="ASumAPackstuecke">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="99" name="ASumAPackstueck" type="BHTASumAPackstueckType">
              <xs:annotation>
                <xs:documentation>ASumA package</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="BhtASumAVerantwortlicherType">
      <xs:sequence>
        <xs:element name="Identifikationsnummer">
          <xs:annotation>
            <xs:documentation>Identification Number</xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:maxLength value="17" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NiederlassungNr">
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:maxLength value="4" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="Ansprechpartner">
          <xs:annotation>
            <xs:documentation>contact person</xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Bearbeiter">
                <xs:annotation>
                  <xs:documentation>name</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="70" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Telefon">
                <xs:annotation>
                  <xs:documentation>telephone number</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="35" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element minOccurs="0" name="EMail">
                <xs:annotation>
                  <xs:documentation>E-Mail adress</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="256" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
  </xs:complexType>
  <xs:complexType name="BhtASumAWirtschaftsbeteiligterType">
    <xs:sequence>
      <xs:element name="LfdNr">
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:maxInclusive value="99" />
            <xs:minInclusive value="1" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="1" name="Identifikationsnummer">
        <xs:annotation>
          <xs:documentation>Identification Number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="17" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="1" name="Funktion">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="3" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ASumAUnterlageType">
    <xs:sequence>
      <xs:element name="LfdNr">
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:maxInclusive value="99" />
            <xs:minInclusive value="1" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Art">
        <xs:annotation>
          <xs:documentation>Type</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:length value="4" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Referenznummer">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="70" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ZappASumAUnterlageType">
    <xs:sequence>
      <xs:element name="LfdNr">
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:maxInclusive value="99" />
            <xs:minInclusive value="1" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="1" name="Art">
        <xs:annotation>
          <xs:documentation>Type</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:length value="4" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="1" name="Referenznummer">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="70" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="BhtASumAZusaetzlicheInformationType">
    <xs:sequence>
      <xs:element name="LfdNr">
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:maxInclusive value="99" />
            <xs:minInclusive value="1" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="1" name="Code">
        <xs:annotation>
          <xs:documentation>Type</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:length value="5" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="Text">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="512" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ASumAGefahrgutType">
           <xs:sequence>
             <xs:element name="LfdNr">
               <xs:simpleType>
                 <xs:restriction base="xs:int">
                   <xs:maxInclusive value="99" />
                   <xs:minInclusive value="1" />
                 </xs:restriction>
               </xs:simpleType>
             </xs:element>
            <xs:element minOccurs="1" name="UnGefahrgutNr">
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:length value="4" />
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
        </xs:sequence>
  </xs:complexType>
  <xs:complexType name="BhtASumADurchgangslandType">
        <xs:sequence>
          <xs:element name="LfdNr">
            <xs:simpleType>
              <xs:restriction base="xs:int">
                <xs:maxInclusive value="99" />
                <xs:minInclusive value="1" />
              </xs:restriction>
            </xs:simpleType>
          </xs:element>
          <xs:element minOccurs="1" name="UnCountryCode">
            <xs:annotation>
              <xs:documentation>UN country code of transit country</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="2" />
              </xs:restriction>
            </xs:simpleType>
          </xs:element>
        </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ASumAVerfahrensuebergangWarenpositionsverweisType">
    <xs:sequence>
      <xs:element name="LfdNr">
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:maxInclusive value="999" />
            <xs:minInclusive value="1" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="1" name="Art">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="REG" />
            <xs:enumeration value="MRN" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="MrnQuellverfahren">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:length value="18" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="RegistriernummerQuellverfahren">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:length value="21" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="PositionsnummerQuellverfahren">
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:maxInclusive value="9999" />
            <xs:minInclusive value="1" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element minOccurs="0" name="PackstueckAnzahl">
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:maxInclusive value="99999" />
            <xs:minInclusive value="0" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="ASumAWarennummerType">
    <xs:restriction base="xs:string">
      <xs:maxLength value="8" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="ASumAWarenbeschreibungType">
    <xs:restriction base="xs:string">
      <xs:maxLength value="280" />
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="SammelReferenzZappType">
    <xs:sequence>
      <xs:element name="ZappReferenz">
        <xs:annotation>
          <xs:documentation>Zapp-Referenz (B-/Z-/S-Nummer) für Sammel-Position</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="18" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Vollstaendig">
        <xs:annotation>
          <xs:documentation>Kennzeichen, dass Zapp-Referenz komplett in dieser Sammel-Positionen vorhanden
                        ist.
                    </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="True" />
            <xs:enumeration value="true" />
            <xs:enumeration value="TRUE" />
            <xs:enumeration value="False" />
            <xs:enumeration value="false" />
            <xs:enumeration value="FALSE" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Gefahrgut">
        <xs:annotation>
          <xs:documentation>Kennzeichen, dass Gefahrgutdaten in die Sammel-Position übernommen werden sollen
                        (Voraussetzung: Ein Auftrag mit der genannten Zapp-Referenz muss in ALPO vorhanden sein und der
                        Auftrag muss Gefahrgutdaten enthalten)
                    </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="True" />
            <xs:enumeration value="true" />
            <xs:enumeration value="TRUE" />
            <xs:enumeration value="False" />
            <xs:enumeration value="false" />
            <xs:enumeration value="FALSE" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="HafenauftragReferenzenAbteilungType">
    <xs:annotation>
      <xs:documentation>department</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:maxLength value="5" />
    </xs:restriction>
  </xs:simpleType>
</xs:schema>