SOAP and nested input
| From: | Emil Edeholt | Date: | Mon, 28 Apr 2008 09:52:58 +0000 |
| Subject: | SOAP and nested input | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-273646@lists.php.net to get a copy of this message | ||
Hello!
If I need to pass nested input to a SOAP function; For example a function that requires these parameters:
<foo>bar</foo>
<foonest>
<barnest>foobar</barnest>
</foonest>
Should I simply nest two arrays to the php soap function, i.e:
$client->foo(array("foo" => "bar", "foonest" => array("barnest" => "foobar"));
'm having some trouble with a SOAP server, and I'm not sure if I passed the params incorrectly or something else is wrong.
The exception I get is: Catchable fatal error: Object of class stdClass could not be converted to string.
Thanks for your time!
Regards Emil