Question.
I have a wsdl soap request structure as follows:
<soap:Envelop e xmlns:xsi="..." xmlns:xsd="..." xmlns:soap="... ">
<soap:Header>.. . </soap:Header>
<soap:Body>
<SaveItem xmlns="...">
<ItemXml>xml</ItemXml>
<PropertyView>s tring</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, "PropertyVi ew" =>
$propertyview);
$result = $this->soapclient->__soapCall($fu nction,
array("paramete rs"=>$params) , null, $this->soapheaders) ;
There is a valid XML string as the ItemXML param, however, using the
__getLastRespon se() 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:PropertyVi ew>website<ns1: PropertyView>
</ns1:SaveItem>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Thankyou in advance for any response
Ryan.
I have a wsdl soap request structure as follows:
<soap:Envelop e xmlns:xsi="..." xmlns:xsd="..." xmlns:soap="... ">
<soap:Header>.. . </soap:Header>
<soap:Body>
<SaveItem xmlns="...">
<ItemXml>xml</ItemXml>
<PropertyView>s tring</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, "PropertyVi ew" =>
$propertyview);
$result = $this->soapclient->__soapCall($fu nction,
array("paramete rs"=>$params) , null, $this->soapheaders) ;
There is a valid XML string as the ItemXML param, however, using the
__getLastRespon se() 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:PropertyVi ew>website<ns1: PropertyView>
</ns1:SaveItem>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Thankyou in advance for any response
Ryan.
Comment