Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

attributes definition with php and nusoap

Help
jerschow
2005-01-04
2013-06-06
  • jerschow
    jerschow
    2005-01-04

    hallo!

    i would like to use an attribute in soap-response. for example,

    <remark type= "error">this is an error </remark>

    in wsdl i have declared an attribute "type" in the complexType "remark". How can i fill this field from the server (php)? for example, the element "remark" will look like this:
    $response["remark"] = "this is an error";

    how should i fill the "type"-field, in order that nusoap treats it like an attribute?

    thanks!

     
    • I'm also having trouble figuring this out. Has anyone gotten attributes to work?  I need to set an attribute on the client side like <paymentinfo xsi:type="creditcardinfo"> ... </paymentinfo>