Not logged in - Login
View History

Depot Data Service SOAP Example

Depot Data Service request

The Depot Data Service is a soap service.

<soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/
xmlns:ns=http://dpd.com/common/service/types/Authentication/2.0
xmlns:ns1="http://dpd.com/common/service/types/DepotDataService/1.0">
<soapenv:Header>
  <ns:authentication>
    <delisId>my delis ID</delisId>
    <authToken>my token</authToken>
    <messageLanguage>us_US</messageLanguage>
  </ns:authentication>
</soapenv:Header>
<soapenv:Body>
  <ns1:getDepotData>
    <country>NL</country>
    <depot>0522</depot>
    <zipCode>5658AD</zipCode>
  </ns1:getDepotData>
</soapenv:Body>
</soapenv:Envelope>

Depot Data Service response

If a request is send with a valid delisId and password this will be the response:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <getDepotDataResponse xmlns="http://dpd.com/common/service/types/DepotDataService/1.0">
         <DepotData xmlns="">
            <depot>0522</depot>
            <name>DPD (Nederland) B.V.</name>
            <street>Tormentil 10</street>
            <country>NL</country>
            <zipCode>5684PK</zipCode>
            <city>Best</city>
            <phone>+31-(0)4 99-3 39-9 00</phone>
            <fax>+31-(0)4 99-3 39-9 01</fax>
         </DepotData>
      </getDepotDataResponse>
   </s:Body>
</s:Envelope>

Depot Data Service response

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <s:Fault>
         <faultcode>s:SERVER</faultcode>
         <faultstring xml:lang="en-US">Fault occured</faultstring>
         <detail>
            <faultCodeType xmlns="http://schemas.datacontract.org/2004/07/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
               <faultCodeField>DEPOTDATA_DEPOT_BY_ZIP_CODE_NOT_FOUND</faultCodeField>
               <messageField>This postcode is unknown to us.</messageField>
            </faultCodeType>
         </detail>
      </s:Fault>
   </s:Body>
</s:Envelope>