0 Replies Latest reply on Sep 18, 2007 1:24 PM by triviaguy

    Sending objects to a web service

    triviaguy
      I've got a web service that takes a complex object as input. It is a Document/Literal service, and I'm having problems with object's child collections. I'm currently having 2 issues with the service call:

      1) If my object contains an ArrayCollection of other objects, each item in the collection is wrapped by two sets of <item> tags, rather than one.

      2) The <item> has no specified type.

      To illustrate the issue, the following is a fragment of the XML that ActionScript is generating:

      <ns:events>
      <item>
      <item>
      <ns:id>1</ns:id>
      ....
      </item>
      </item.
      </ns:events>

      And here is what I need:

      <ns:events>
      <item xsi:type="ns:Event">
      <ns:id>1</ns:id>
      ...
      </item>
      </ns:events>

      Does anyone know how I can get ActionScript to produce that XML?

      Thanks in advance,

      Steve