|
Posted by The Grand Admiral on 09/19/05 10:36
Question.
I have a wsdl soap request structure as follows:
<soap:Envelope xmlns:xsi="..." xmlns:xsd="..." xmlns:soap="...">
<soap:Header>... </soap:Header>
<soap:Body>
<SaveItem xmlns="...">
<ItemXml>xml</ItemXml>
<PropertyView>string</PropertyView>
</SaveItem>
</soap:Body>
</soap:Envelope>
I cant seem to work out how to add an string representation of an xml
document as the ItemXml parameter.
Currently I use the __soapCall() function with an assoc array as the
second argument as shown below:
$params = array("ItemXml" => $itemxml, "PropertyView" =>
$propertyview);
$result = $this->soapclient->__soapCall($function,
array("parameters"=>$params), null, $this->soapheaders);
There is a valid XML string as the ItemXML param, however, using the
__getLastResponse() function I get an empty XML string as the ItemXML
param. eg.
<SOAP-ENV:Envelope xmlns:SOAP-ENV="..." xmlns:ns1="...">
<SOAP-ENV:Header></SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:SaveItem>
<ns1:ItemXml />
<ns1:PropertyView>website<ns1:PropertyView>
</ns1:SaveItem>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Thankyou in advance for any response
Ryan.
Navigation:
[Reply to this message]
|