Reply to PHP 5 soap request with XML-string param.

Your name:

Reply:


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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация