note 81919 added to function.soap-soapclient-soapcall
| From: | AlejandroCavallo at osu1 dot php dot net | Date: | Wed, 19 Mar 2008 15:38:19 +0000 |
| Subject: | note 81919 added to function.soap-soapclient-soapcall | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-137200@lists.php.net to get a copy of this message | ||
I get the same problem reported above by ryan:
"ryan at grunt dot tv
22-Sep-2005 01:38
If you want to pass an xml document node as a function parameter, your need to create a SoapVar
object with a text represention of the xml node and the XSD_ANYXML encoding constant. However, this
constant is not exported by the extension and is not documented for some unknown reason."
When defined variable soapVar I assigned the type XSD_STRING rather than as XSD_ANYXML.
And when calls to the function you must pass the soapVar in an associative array.
For example if the function (called myFunc) expect a parameter called xmlInput you should do
something like this:
$soapvar = new SoapVar($query, XSD_STRING);
$result = $client->myFunc(array('xmlInput'=>$soapvar));
This XML fragment are wrapped around xmlImput tags.-
----
Server IP: 190.2.55.3
Probable Submitter: 201.231.119.114
----
Manual Page -- http://www.php.net/manual/en/function.soap-soapclient-soapcall.php
Edit -- https://master.php.net/note/edit/81919
Del: integrated -- https://master.php.net/note/delete/81919/integrated
Del: useless -- https://master.php.net/note/delete/81919/useless
Del: bad code -- https://master.php.net/note/delete/81919/bad+code
Del: spam -- https://master.php.net/note/delete/81919/spam
Del: non-english -- https://master.php.net/note/delete/81919/non-english
Del: in docs -- https://master.php.net/note/delete/81919/in+docs
Del: other reasons-- https://master.php.net/note/delete/81919
Reject -- https://master.php.net/note/reject/81919
Search -- https://master.php.net/manage/user-notes.php