471,337 Members | 950 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

PHP5 SOAP - how to set attribute of node using OO interface


If I use $soapclient->__soapCall(...) with data in PHP arrays, resulting
XML uses elements and their contents only.

i.e.
array('foo'=>array('bar'=>'baz'))
is in request as
<foo><bar>baz</bar></foo>

I need
<foo bar="baz">quz</foo>

How can I archieve it using PHP5 SOAP extension? I'm using SOAP in WSDL
mode.

(I suspect SoapVar is the answer, but I couldn't figure out how to use it)

--
FUT = php.soap

this.author = new Geek("porneL");
Jul 17 '05 #1
0 1578

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Tristan Tarrant | last post: by
reply views Thread by Matt Wood | last post: by
16 posts views Thread by MR | last post: by
3 posts views Thread by Rodney Garland | last post: by
3 posts views Thread by frustratedcoder | last post: by
5 posts views Thread by Soledad Vel | last post: by
2 posts views Thread by Kevin Eldridge | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.