PHP5 SOAP Attributes (Redux)

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I think something is not working as stated.
According to the site, the XML:

<foo bar="blah">12345</foo>

should be represented as:
array('foo' => array('_' => 12345, 'bar' => 'blah'));

or equivalently,

$something['foo'] = array('_' => 12345, 'bar' => 'blah');

If I feed this into PHP5 SOAP and then do a getLastRequest(), I get:


Which to me says that it is treating the 'bar' as an element not an  

Is the example on the site wrong? Am I confused about something?

Any help would be appreciated.

Re: PHP5 SOAP Attributes (Redux)

You are using RPC/encoded instead of RPC/literal, or something like


Site Timeline