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

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

P: n/a

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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.