0 Replies Latest reply on Sep 28, 2006 4:58 PM by rittwager

    Sending XML attributes to a web service

      Can I send attributes by loading an object, and sending it by the WebService object? I am sending XML values in Action Script to a SOAP web service via these classes:

      mx.rpc.soap.WebService and mx.rpc.soap.AbstractOperation

      Everything is working fine, however the attributes are not getting passed over. My question is: How do I send XML attribute values via a WebService object?



      I can send that like this:

      var person:Object = new Object();
      person.name = "Bob";

      However, what if I wanted to send this XML, with the attribute:

      <person city="Mayberry">

      Is there some way to add the "city" attribute to the object so that it wil become part of the XML that is sent to the web service?