Re: SOAP and nested input
| From: | Richard Lynch | Date: | Mon, 28 Apr 2008 19:19:14 +0000 |
| Subject: | Re: SOAP and nested input | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-273658@lists.php.net to get a copy of this message | ||
On Mon, April 28, 2008 4:52 am, Emil Edeholt wrote:
> 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"));
Should work, I think...
> The exception I get is: Catchable fatal error: Object of class
> stdClass
> could not be converted to string.
This means you tried to echo/print or embed into a string some kind of
php built-in Object, or some on-the-fly object you created.
--
Can you do me a favor?
Sign up for http://Facebook.com
Add http://apps.facebook.com/whereivebeen/
Review it, and let 'em know Rich sent you.
http://www.facebook.com/apps/application.php?id=2603626322
(Scroll down to the middle of the middle column)
Give it a 5-star rating please :-)
(If you can't go 5-star, email me to tell me why)