Example #1
0
<?php

$cli = new SoapClient('http://172.29.134.12:10000/?wsdl', ['location' => 'http://172.29.134.12:10000', 'uri' => 'http://172.29.134.12:10000', 'soap_version' => SOAP_1_2, 'features' => SOAP_SINGLE_ELEMENT_ARRAYS, 'trace' => true, 'encoding' => 'utf-8']);
try {
    var_dump($cli->GetVehicle(['Vehicle' => ['RegistrationNumber' => '195']]));
    echo "\n" . $cli->__getLastRequest();
    echo "\n" . $cli->__getLastResponse();
} catch (SoapFault $sf) {
    var_dump($sf);
}