Hi All,
TIA, but currently I am trying to make a soap call to an API and I am not able to get the soap body to conform properly.
The current soap body that I am generating is
The problem is I need it to look like the following:
Can some help me create the proper parameter to pass through with PHP code. I have been looking everywhere for an example similar to this but no luck.
This is what I have so far with somethings hidden for specific reasons
[PHP]
$param = new SoapVar(array(' ListingID'=> 12), null, XSD_INT, "mynamespac e");
client = new SoapClient('my wsdl location', array('trace'=> 1));
$result = $client->CancelEnhanced Listing($param) ;
[/PHP]
Thanks again for all your help,
Joe
TIA, but currently I am trying to make a soap call to an API and I am not able to get the soap body to conform properly.
The current soap body that I am generating is
Code:
<SOAP-ENV:Body> <ns1:CancelEnhancedListing xsi:type="ns1:135"> <item><key>ListingID</key><value>12</value></item> </ns1:CancelEnhancedListing> </SOAP-ENV:Body>
Code:
<soap:Body>
<ns1:CancelEnhancedListing xmlns="mynamespace">
<Arguments>
<ListingID>int</ListingID>
</Arguments>
</ns1:CancelEnhancedListing>
</soap:Body>
This is what I have so far with somethings hidden for specific reasons
[PHP]
$param = new SoapVar(array(' ListingID'=> 12), null, XSD_INT, "mynamespac e");
client = new SoapClient('my wsdl location', array('trace'=> 1));
$result = $client->CancelEnhanced Listing($param) ;
[/PHP]
Thanks again for all your help,
Joe
Comment