Posted by David Haynes on 10/23/61 11:40
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-
[Back to original message]
|