Not logged in - Login
View History

Login Service SOAP Example

Login request

The login service is a soap service.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://dpd.com/common/service/types/LoginService/2.0">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:getAuth>
         <delisId>my delis ID</delisId>
         <password>my delis password</password>
         <!--Optional:-->
         <messageLanguage>language code</messageLanguage>
      </ns:getAuth>
   </soapenv:Body>
</soapenv:Envelope>

Login 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">
      <getAuthResponse xmlns="http://dpd.com/dpdintegrationservices/types/loginservice/1.0">
         <return xmlns="">
         <delisId>my delis ID</delisId>
            <customerUid> customerUid</customerUid>
            <authtoken>authtoken</authtoken>
            <depot>depot</depot>
         </return>
      </getAuthResponse>
   </s:Body>
</s:Envelope>

Login error response

If the customer is not authorized to use the services a Fault is returned. Example:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <s:Fault>
         <faultcode>s:Server</faultcode>
         <faultstring>Fault occured</faultstring>
         <detail>
            <authenticationFault xmlns="http://dpd.com/common/service/types/Authentication/2.0" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
               <errorCode>LOGIN_8</errorCode>
               <errorMessage>Uw gebruikersnaam en wachtwoord komen niet overeen.</errorMessage>
            </AuthenticationFault>
         </detail>
      </s:Fault>
   </s:Body>
</s:Envelope>