I am trying to call this web service http://www.carwebuk.com/carwebvrrb2b/carwebvrrwebservice.asmx?op=strB2BGetVehicleByVRM
However having no luck at all.
I did try it like this using soap
$url = "http://www.carwebuk.com/carwebvrrb2b/carwebvrrwebservice.asmx?op=strB2BGetVehicleByVRM";
$postparams = "strUserName=".$carwebusername;
$postparams .= "&strPassword=".$carwebpassword;
$postparams .= "&strClientRef=1";
$postparams .= "&strClientDescription=morland media group";
$postparams .= "&strKey1=".$carwebvalidator;
$postparams .= "&strVRM=".$reg;
$postparams .= "&strVersion=".$carwebversion;
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postparams);
//$data = "strB2BGetVehicleByVRM.xml";
$data = curl_exec($ch);
curl_close($ch);
$cardetails = xml2array("", $data);
echo $data;
I also tried using nusoap like this
$url = "http://www.carwebuk.com/carwebvrrb2b/carwebvrrwebservice.asmx?op=strB2BGetVehicleByVRM";
$post = "strUserName=RubiconCorp&strPassword=637108&strClientRef=string&strClientDescription=string&strKey1=b834ov99r&strVRM=string&strVersion=0.0.9";
$client = new soapclient($url,FALSE);
$err = $client->getError();
if ($err) {
echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';
}
$param = array(
'strUserName' => 'bdghd',
'strPassword' => 'fdf',
'strClientRef' => 'books',
'strClientDescription' =>'melonfire-20',
'strKey1' => 'lite',
'strVRM' => 'b834ov99r',
'strVersion' => '0.0.9'
);
$result = $client->call($param);
However no luck. Would be really gratefull if someone could help me.