I got the following parameters as a response from SOAP client. But i only want few to show as a result. I am getting the results properly but its only for 1 vehicle and i have more than 1 vehicles. So i dont know how to loop to get the results.
Output for 1 vehicle
array (size=5)
'SchwackeCode' => int 10130969
'WE_Number' => int 19373134
'HSN' => string '0005' (length=4)
'TSN' => string 'AMP' (length=3)
'VIN' => string '12345678901472583' (length=17)
Code:
$client = new SoapClient($wsdl, $options);
$result = $client->getVehicleValuation($params);
$return = array(
'SchwackeCode' => $result->vehicle->SchwackeCode,
'WE_Number' => $result->vehicle->WE_Number,
'HSN' => $result->vehicle->HSN,
'TSN' => $result->vehicle->TSN,
'VIN' => $result->vehicle->Ident_Number,
'WE_Number' => $result->vehicle->WE_Number
);
return $return;