<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">&lt;?php
/**
 * This file aims to show you how to use this generated package.
 * In addition, the goal is to show which methods are available and the first needed parameter(s)
 * You have to use an associative array such as:
 * - the key must be a constant beginning with WSDL_ from AbstractSoapClientBase class (each generated ServiceType class extends this class)
 * - the value must be the corresponding key value (each option matches a {@link http://www.php.net/manual/en/soapclient.soapclient.php} option)
 * $options = array(
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL =&gt; 'https://webtrace.dpd.fr/trace-service/Webtrace_Service.asmx?WSDL',
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_TRACE =&gt; true,
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_LOGIN =&gt; 'you_secret_login',
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_PASSWORD =&gt; 'you_secret_password',
 * );
 * etc...
 */
require_once __DIR__ . '/vendor/autoload.php';
/**
 * Minimal options
 */
$options = array(
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL =&gt; 'https://webtrace.dpd.fr/trace-service/Webtrace_Service.asmx?WSDL',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP =&gt; \Dpd\ClassMap::get(),
);
/**
 * Samples for Is ServiceType
 */
$is = new \Dpd\ServiceType\Is($options);
/**
 * Sample call for isAlive operation/method
 */
if ($is-&gt;isAlive(new \Dpd\StructType\IsAlive()) !== false) {
    print_r($is-&gt;getResult());
} else {
    print_r($is-&gt;getLastError());
}
/**
 * Samples for Set ServiceType
 */
$set = new \Dpd\ServiceType\Set($options);
$set-&gt;setSoapHeaderUserCredentials(new \Dpd\StructType\UserCredentials());
/**
 * Sample call for setAlive operation/method
 */
if ($set-&gt;setAlive(new \Dpd\StructType\SetAlive()) !== false) {
    print_r($set-&gt;getResult());
} else {
    print_r($set-&gt;getLastError());
}
/**
 * Samples for Verify ServiceType
 */
$verify = new \Dpd\ServiceType\Verify($options);
$verify-&gt;setSoapHeaderVerifyUserCredentials(new \Dpd\StructType\VerifyUserCredentials());
/**
 * Sample call for VerifyConfiguration operation/method
 */
if ($verify-&gt;VerifyConfiguration(new \Dpd\StructType\VerifyConfiguration()) !== false) {
    print_r($verify-&gt;getResult());
} else {
    print_r($verify-&gt;getLastError());
}
/**
 * Samples for Get ServiceType
 */
$get = new \Dpd\ServiceType\Get($options);
$get-&gt;setSoapHeaderUserCredentials(new \Dpd\StructType\UserCredentials());
/**
 * Sample call for getInfo operation/method
 */
if ($get-&gt;getInfo(new \Dpd\StructType\GetInfo()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for GetShipmentTraceSingle operation/method
 */
if ($get-&gt;GetShipmentTraceSingle(new \Dpd\StructType\GetShipmentTraceSingle()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for GetShipmentTrace operation/method
 */
if ($get-&gt;GetShipmentTrace(new \Dpd\StructType\GetShipmentTrace()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for GetShipmentTraceByReference operation/method
 */
if ($get-&gt;GetShipmentTraceByReference(new \Dpd\StructType\GetShipmentTraceByReference()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for GetLastTrace operation/method
 */
if ($get-&gt;GetLastTrace(new \Dpd\StructType\GetLastTrace()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for GetLastTraceBc operation/method
 */
if ($get-&gt;GetLastTraceBc(new \Dpd\StructType\GetLastTraceBc()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Samples for Run ServiceType
 */
$run = new \Dpd\ServiceType\Run($options);
$run-&gt;setSoapHeaderUserCredentials(new \Dpd\StructType\UserCredentials());
/**
 * Sample call for runAction operation/method
 */
if ($run-&gt;runAction(new \Dpd\StructType\RunAction()) !== false) {
    print_r($run-&gt;getResult());
} else {
    print_r($run-&gt;getLastError());
}
</pre></body></html>