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 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:

<ns1:foo>
<item>
<key>_</key>
<value>12345</value>
</item>
<item>
<key>bar</key>
<value>blah</key>
</item>
</ns1:foo>

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

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

Any help would be appreciated.
-david-

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
that.

See:
http://www-128.ibm.com/developerwork.../ws-whichwsdl/

Feb 11 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.