Reply to PHP5 SOAP Attributes (Redux)

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация