WsdlToPhp /
PackageColissimoPickupPoint
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * This file aims to show you how to use this generated package. |
||
| 4 | * In addition, the goal is to show which methods are available and the first needed parameter(s) |
||
| 5 | * You have to use an associative array such as: |
||
| 6 | * - the key must be a constant beginning with WSDL_ from AbstractSoapClientBase class (each generated ServiceType class extends this class) |
||
| 7 | * - the value must be the corresponding key value (each option matches a {@link http://www.php.net/manual/en/soapclient.soapclient.php} option) |
||
| 8 | * $options = array( |
||
| 9 | * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => 'https://ws.colissimo.fr/pointretrait-ws-cxf/PointRetraitServiceWS/2.0?wsdl', |
||
| 10 | * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_TRACE => true, |
||
| 11 | * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_LOGIN => 'you_secret_login', |
||
| 12 | * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_PASSWORD => 'you_secret_password', |
||
| 13 | * ); |
||
| 14 | * etc... |
||
| 15 | */ |
||
| 16 | require_once __DIR__ . '/vendor/autoload.php'; |
||
| 17 | /** |
||
| 18 | * Minimal options |
||
| 19 | */ |
||
| 20 | $options = array( |
||
| 21 | \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => 'https://ws.colissimo.fr/pointretrait-ws-cxf/PointRetraitServiceWS/2.0?wsdl', |
||
| 22 | \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => \ColissimoPickupPoint\ClassMap::get(), |
||
| 23 | ); |
||
| 24 | /** |
||
| 25 | * Samples for Find ServiceType |
||
| 26 | */ |
||
| 27 | $find = new \ColissimoPickupPoint\ServiceType\Find($options); |
||
| 28 | /** |
||
| 29 | * Sample call for findRDVPointRetraitAcheminement operation/method |
||
| 30 | */ |
||
| 31 | if ($find->findRDVPointRetraitAcheminement(new \ColissimoPickupPoint\StructType\FindRDVPointRetraitAcheminement()) !== false) { |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 32 | print_r($find->getResult()); |
||
| 33 | } else { |
||
| 34 | print_r($find->getLastError()); |
||
| 35 | } |
||
| 36 | /** |
||
| 37 | * Sample call for findRDVPointRetraitAcheminementByToken operation/method |
||
| 38 | */ |
||
| 39 | if ($find->findRDVPointRetraitAcheminementByToken(new \ColissimoPickupPoint\StructType\FindRDVPointRetraitAcheminementByToken()) !== false) { |
||
|
0 ignored issues
–
show
|
|||
| 40 | print_r($find->getResult()); |
||
| 41 | } else { |
||
| 42 | print_r($find->getLastError()); |
||
| 43 | } |
||
| 44 | /** |
||
| 45 | * Sample call for findPointRetraitAcheminementByID operation/method |
||
| 46 | */ |
||
| 47 | if ($find->findPointRetraitAcheminementByID(new \ColissimoPickupPoint\StructType\FindPointRetraitAcheminementByID()) !== false) { |
||
|
0 ignored issues
–
show
|
|||
| 48 | print_r($find->getResult()); |
||
| 49 | } else { |
||
| 50 | print_r($find->getLastError()); |
||
| 51 | } |
||
| 52 |