Not logged in - Login
View History

Depot Data Service PHP Example

It is NOT recommended to use this minimal example.

Please check the DIS library for an extended example and best practices.

//The header is filled with the data you got from the authentication service
$soapHeaderBody = array(
  'delisId' => <your delisID> 
  ,'authToken' => <your token>
  ,'messageLanguage' => 'en_US'
);

$header = new SOAPHeader('http://dpd.com/common/service/types/Authentication/2.0', 'authentication', $soapHeaderBody, false);
  
$client = new SoapClient('https://public-dis-stage.dpd.nl/Services/DepotDataService.svc?wsdl');
  
$soapHeader = $header;
$client->__setSoapHeaders($soapHeader);

$result = $client->getDepotData(array(
  'country' => 'BE'
  ,'zipCode' => '1000'
));

print_r($result);

This example should return something like: