Re: [PHP] SOAP and nested input
- From: ceo@xxxxxxxxx ("Richard Lynch")
- Date: Mon, 28 Apr 2008 14:19:14 -0500 (CDT)
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)
.
- References:
- SOAP and nested input
- From: Emil Edeholt
- SOAP and nested input
- Prev by Date: SMS Cellular Text Messaging
- Next by Date: RE: [PHP] SMS Cellular Text Messaging
- Previous by thread: SOAP and nested input
- Next by thread: Re: [PHP] PHP debugger
- Index(es):