By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,934 Members | 1,692 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,934 IT Pros & Developers. It's quick & easy.

PHP5 SOAP Attributes (Redux)

P: n/a
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.

Feb 10 '06 #1
Share this Question
Share on Google+
1 Reply

P: n/a
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.