SOAP Return... Confused
Posted: Thu Aug 31, 2006 9:24 am
I am trying to consume a vendor's web service built with .NET using the native php5 SOAP stuff.
First off, all the return classes in the WSDL proxy code look all goofy like this:
No idea what that "any" thing is all about...
After doing a standard dump of the result per below:
I end up with this:
I know I must be missing something real simple here.. but I am pretty new to web services and xml.
Can anyone help me out or point me in the right direction?
EDIT: Oh, and if it helps, here is the actual xml response:
Basically I'm just trying to parse out the vehicle(s) info.
First off, all the return classes in the WSDL proxy code look all goofy like this:
Code: Select all
[6]=>
string(50) "struct RetrieveVehiclePHPResult {
any;
}"After doing a standard dump of the result per below:
Code: Select all
$client = new SoapClient($WSDL, array('connection_timeout' => 5, 'trace' => 1, 'exceptions' => 1));
.
.
.
$result = $client->RetrieveVehiclePHP($params)->RetrieveVehiclePHPResult;
var_dump($result);Code: Select all
object(stdClass)#4 (1) { ["any"]=> string(273) "" }Can anyone help me out or point me in the right direction?
EDIT: Oh, and if it helps, here is the actual xml response:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<RetrieveVehiclePHPResponse xmlns="http://transform.dmsintegration.com/">
<RetrieveVehiclePHPResult>
<RyanTech_DMSi TimeStamp="8/31/2006 12:01:13 AM" xmlns="">
<Vehicles>
<Vehicle Condition="New" VIN="WBANE73516CM34097" Stock_Number="B4128" Model_Year="06" Make_Name="BMW" Model_Name="530I" Color="" Price="51615.00" Imported="8/30/2006 3:45:09 PM" />
</Vehicles>
</RyanTech_DMSi>
</RetrieveVehiclePHPResult>
</RetrieveVehiclePHPResponse>
</soap:Body>
</soap:Envelope>