470,848 Members | 1,801 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,848 developers. It's quick & easy.

PHP5 SOAP Attributes (Redux)

I think something is not working as stated.
According to the php.net 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 php.net site wrong? Am I confused about something?

Any help would be appreciated.

Feb 10 '06 #1
1 1668
You are using RPC/encoded instead of RPC/literal, or something like


Feb 11 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Henrik Brautaset Aronsen | last post: by
reply views Thread by Tristan Tarrant | last post: by
reply views Thread by John | last post: by
2 posts views Thread by administrator | last post: by
3 posts views Thread by frustratedcoder | last post: by
reply views Thread by Jigar.Patel | last post: by
reply views Thread by dex | last post: by
reply views Thread by kim123 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.