note 56903 added to function.soap-soapclient-soapcall

From: Date: Mon, 19 Sep 2005 06:21:48 +0000
Subject: note 56903 added to function.soap-soapclient-soapcall
Groups: php.notes 
Request: Send a blank email to php-notes+get-95391@lists.php.net to get a copy of this message
Question. I have the following wsdl SOAP request structure: <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> The 'ItemXML' element should contain a string representation of some XML. All pretty straight forward. However, when I execute the __soapCall function as shown below: $params = array("ItemXML"=>$xml,"PropertyView"=>"") $result = $this->soapclient->__soapCall($function, array("parameters"=>$params), null, $this->soapheaders); The soap request is not being constructed correctly, as is confirmed by the __getLastRequest function which returns the soap: <SOAP-ENV:Envelope xmlns:SOAP-ENV="..." xmlns:ns1="..."> <SOAP-ENV:Header>...</SOAP-ENV:Header> <SOAP-ENV:Body> <ns1:SaveItem> <ns1:ItemXml/> <ns1:PropertyView></ns1:PropertyView> </ns1:SaveItem> </SOAP-ENV:Body> </SOAP-ENV:Envelope> I print_r the $params array and I have a valid segment of XML. Why is the xml not being put into the ItemXml node correctly? ---- Manual Page -- http://www.php.net/manual/en/function.soap-soapclient-soapcall.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+56903 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56903&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56903&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56903&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56903&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56903&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+56903&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56903&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+56903&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#95391) next »