<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://ws.chronopost.fr/shipping-cxf/ShippingServiceWS?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://ws.chronopost.fr/shipping-cxf/ShippingServiceWS?wsdl',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP =&gt; \Chronopost\ClassMap::get(),
);
/**
 * Samples for Faisabilite ServiceType
 */
$faisabilite = new \Chronopost\ServiceType\Faisabilite($options);
/**
 * Sample call for faisabiliteESD operation/method
 */
if ($faisabilite-&gt;faisabiliteESD(new \Chronopost\StructType\FaisabiliteESD()) !== false) {
    print_r($faisabilite-&gt;getResult());
} else {
    print_r($faisabilite-&gt;getLastError());
}
/**
 * Samples for Get ServiceType
 */
$get = new \Chronopost\ServiceType\Get($options);
/**
 * Sample call for getReservedSkybillWithType operation/method
 */
if ($get-&gt;getReservedSkybillWithType(new \Chronopost\StructType\GetReservedSkybillWithType()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getReservedSkybillWithTypeAndModeAuth operation/method
 */
if ($get-&gt;getReservedSkybillWithTypeAndModeAuth(new \Chronopost\StructType\GetReservedSkybillWithTypeAndModeAuth()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getReservedSkybillWithTypeAndModeByReservation operation/method
 */
if ($get-&gt;getReservedSkybillWithTypeAndModeByReservation(new \Chronopost\StructType\GetReservedSkybillWithTypeAndModeByReservation()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getReservedSkybill operation/method
 */
if ($get-&gt;getReservedSkybill(new \Chronopost\StructType\GetReservedSkybill()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getReservedSkybillWithTypeAndMode operation/method
 */
if ($get-&gt;getReservedSkybillWithTypeAndMode(new \Chronopost\StructType\GetReservedSkybillWithTypeAndMode()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getShippingInformation operation/method
 */
if ($get-&gt;getShippingInformation(new \Chronopost\StructType\GetShippingInformation()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for getRouting operation/method
 */
if ($get-&gt;getRouting(new \Chronopost\StructType\GetRouting()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Samples for Shipping ServiceType
 */
$shipping = new \Chronopost\ServiceType\Shipping($options);
/**
 * Sample call for shippingV2 operation/method
 */
if ($shipping-&gt;shippingV2(new \Chronopost\StructType\ShippingV2()) !== false) {
    print_r($shipping-&gt;getResult());
} else {
    print_r($shipping-&gt;getLastError());
}
/**
 * Sample call for shippingV3 operation/method
 */
if ($shipping-&gt;shippingV3(new \Chronopost\StructType\ShippingV3()) !== false) {
    print_r($shipping-&gt;getResult());
} else {
    print_r($shipping-&gt;getLastError());
}
/**
 * Sample call for shippingMultiParcel operation/method
 */
if ($shipping-&gt;shippingMultiParcel(new \Chronopost\StructType\ShippingMultiParcel()) !== false) {
    print_r($shipping-&gt;getResult());
} else {
    print_r($shipping-&gt;getLastError());
}
/**
 * Sample call for shippingWithESDOnlyV2 operation/method
 */
if ($shipping-&gt;shippingWithESDOnlyV2(new \Chronopost\StructType\ShippingWithESDOnlyV2()) !== false) {
    print_r($shipping-&gt;getResult());
} else {
    print_r($shipping-&gt;getLastError());
}
/**
 * Sample call for shippingWithReservationV2 operation/method
 */
if ($shipping-&gt;shippingWithReservationV2(new \Chronopost\StructType\ShippingWithReservationV2()) !== false) {
    print_r($shipping-&gt;getResult());
} else {
    print_r($shipping-&gt;getLastError());
}
/**
 * Sample call for shipping operation/method
 */
if ($shipping-&gt;shipping(new \Chronopost\StructType\Shipping()) !== false) {
    print_r($shipping-&gt;getResult());
} else {
    print_r($shipping-&gt;getLastError());
}
/**
 * Sample call for shippingMultiParcelWithReservation operation/method
 */
if ($shipping-&gt;shippingMultiParcelWithReservation(new \Chronopost\StructType\ShippingMultiParcelWithReservation()) !== false) {
    print_r($shipping-&gt;getResult());
} else {
    print_r($shipping-&gt;getLastError());
}
/**
 * Sample call for shippingMultiParcelV4 operation/method
 */
if ($shipping-&gt;shippingMultiParcelV4(new \Chronopost\StructType\ShippingMultiParcelV4()) !== false) {
    print_r($shipping-&gt;getResult());
} else {
    print_r($shipping-&gt;getLastError());
}
/**
 * Sample call for shippingMultiParcelV5 operation/method
 */
if ($shipping-&gt;shippingMultiParcelV5(new \Chronopost\StructType\ShippingMultiParcelV5()) !== false) {
    print_r($shipping-&gt;getResult());
} else {
    print_r($shipping-&gt;getLastError());
}
/**
 * Sample call for shippingMultiParcelWithReservationV3 operation/method
 */
if ($shipping-&gt;shippingMultiParcelWithReservationV3(new \Chronopost\StructType\ShippingMultiParcelWithReservationV3()) !== false) {
    print_r($shipping-&gt;getResult());
} else {
    print_r($shipping-&gt;getLastError());
}
/**
 * Sample call for shippingMultiParcelV2 operation/method
 */
if ($shipping-&gt;shippingMultiParcelV2(new \Chronopost\StructType\ShippingMultiParcelV2()) !== false) {
    print_r($shipping-&gt;getResult());
} else {
    print_r($shipping-&gt;getLastError());
}
/**
 * Sample call for shippingV6 operation/method
 */
if ($shipping-&gt;shippingV6(new \Chronopost\StructType\ShippingV6()) !== false) {
    print_r($shipping-&gt;getResult());
} else {
    print_r($shipping-&gt;getLastError());
}
/**
 * Sample call for shippingWithReservation operation/method
 */
if ($shipping-&gt;shippingWithReservation(new \Chronopost\StructType\ShippingWithReservation()) !== false) {
    print_r($shipping-&gt;getResult());
} else {
    print_r($shipping-&gt;getLastError());
}
/**
 * Sample call for shippingV7 operation/method
 */
if ($shipping-&gt;shippingV7(new \Chronopost\StructType\ShippingV7()) !== false) {
    print_r($shipping-&gt;getResult());
} else {
    print_r($shipping-&gt;getLastError());
}
/**
 * Sample call for shippingWithReservationAndESDWithRefClient operation/method
 */
if ($shipping-&gt;shippingWithReservationAndESDWithRefClient(new \Chronopost\StructType\ShippingWithReservationAndESDWithRefClient()) !== false) {
    print_r($shipping-&gt;getResult());
} else {
    print_r($shipping-&gt;getLastError());
}
/**
 * Sample call for shippingV4 operation/method
 */
if ($shipping-&gt;shippingV4(new \Chronopost\StructType\ShippingV4()) !== false) {
    print_r($shipping-&gt;getResult());
} else {
    print_r($shipping-&gt;getLastError());
}
/**
 * Sample call for shippingV5 operation/method
 */
if ($shipping-&gt;shippingV5(new \Chronopost\StructType\ShippingV5()) !== false) {
    print_r($shipping-&gt;getResult());
} else {
    print_r($shipping-&gt;getLastError());
}
/**
 * Sample call for shippingWithReservationAndESDWithRefClientPC operation/method
 */
if ($shipping-&gt;shippingWithReservationAndESDWithRefClientPC(new \Chronopost\StructType\ShippingWithReservationAndESDWithRefClientPC()) !== false) {
    print_r($shipping-&gt;getResult());
} else {
    print_r($shipping-&gt;getLastError());
}
/**
 * Sample call for shippingMultiParcelWithReservationV2 operation/method
 */
if ($shipping-&gt;shippingMultiParcelWithReservationV2(new \Chronopost\StructType\ShippingMultiParcelWithReservationV2()) !== false) {
    print_r($shipping-&gt;getResult());
} else {
    print_r($shipping-&gt;getLastError());
}
/**
 * Sample call for shippingWithESDOnly operation/method
 */
if ($shipping-&gt;shippingWithESDOnly(new \Chronopost\StructType\ShippingWithESDOnly()) !== false) {
    print_r($shipping-&gt;getResult());
} else {
    print_r($shipping-&gt;getLastError());
}
/**
 * Sample call for shippingMultiParcelV3 operation/method
 */
if ($shipping-&gt;shippingMultiParcelV3(new \Chronopost\StructType\ShippingMultiParcelV3()) !== false) {
    print_r($shipping-&gt;getResult());
} else {
    print_r($shipping-&gt;getLastError());
}
/**
 * Samples for Creer ServiceType
 */
$creer = new \Chronopost\ServiceType\Creer($options);
/**
 * Sample call for creerEnlevementNational operation/method
 */
if ($creer-&gt;creerEnlevementNational(new \Chronopost\StructType\CreerEnlevementNational()) !== false) {
    print_r($creer-&gt;getResult());
} else {
    print_r($creer-&gt;getLastError());
}
/**
 * Sample call for creerEnlevementEurope operation/method
 */
if ($creer-&gt;creerEnlevementEurope(new \Chronopost\StructType\CreerEnlevementEurope()) !== false) {
    print_r($creer-&gt;getResult());
} else {
    print_r($creer-&gt;getLastError());
}
/**
 * Samples for Rechercher ServiceType
 */
$rechercher = new \Chronopost\ServiceType\Rechercher($options);
/**
 * Sample call for rechercherContraintesEnlevement operation/method
 */
if ($rechercher-&gt;rechercherContraintesEnlevement(new \Chronopost\StructType\RechercherContraintesEnlevement()) !== false) {
    print_r($rechercher-&gt;getResult());
} else {
    print_r($rechercher-&gt;getLastError());
}
/**
 * Samples for Annuler ServiceType
 */
$annuler = new \Chronopost\ServiceType\Annuler($options);
/**
 * Sample call for annulerEnlevements operation/method
 */
if ($annuler-&gt;annulerEnlevements(new \Chronopost\StructType\AnnulerEnlevements()) !== false) {
    print_r($annuler-&gt;getResult());
} else {
    print_r($annuler-&gt;getLastError());
}
</pre></body></html>