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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • porneL

    #1

    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'=>ar ray('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");
Working...