- var_dump: documentation ( source)
<?php
class SoapService
{
const WSDL_URL = 'https://soap.cap.co.uk/Vehicles/CapVehicles.asmx?WSDL';
private $client;
function __construct()
{
$this->client = new SoapClient(self::WSDL_URL, array("trace" => 1, "exception" => 0));
}
function getMakes()
{
$header = NULL;
$result = $this->client->__soapCall("GetCapMan", array(
"GetCapMan" => array(
"subscriberId" => 'xxxx',
"password" => "xxxx",
"database" => "car",
"justCurrentManufacturers" => true,
"bodyStyleFilter" => ''
)
), NULL, $header);
return $result;
}
}
$client = new SoapService();
$makes = $client->getMakes();
var_dump($makes);