1 Reply Latest reply on Aug 11, 2006 4:57 AM by Newsgroup_User

    Decoding SOAP - should Flash 8 be able to decode an array of objects correctly?

    Level 7
      Evenin all,

      Can, or should Flash 8 be able to fully decode a SOAP call that return
      an array of objects?

      The reason I ask is because flash can easily decode a SOAP call that
      returns an object.

      The exact problem Im having is Flash seems to decode the SOAP call
      into an Array of XML items. I would like it if the XML items to also
      be decoded to the objects they represent.

      If flash should be able to do this then could it be my WSDL file that
      is causing the prioblem or purely the SOAP call return data?

      So you can see what I am am returning as the soap call to Flash here
      is an example of an array containing two objects with a name, age,
      address and zip.

      <item xsi:type="namesp2:SOAPStruct">
      <zip xsi:type="xsd:string">aa123bb</zip>
      <name xsi:type="xsd:string">Bob the builder</name>
      <address xsi:type="xsd:string">55 Can we do it <street</address>
      <age xsi:type="xsd:int">25</age>
      </item>,
      <item xsi:type="namesp2:SOAPStruct">
      <zip xsi:type="xsd:string">55krypton66</zip>
      <name xsi:type="xsd:string">Superman</name>
      <address xsi:type="xsd:string">Krypton</address>
      <age xsi:type="xsd:int">35</age>
      </item>

      Cheers,
      Tom
        • 1. Re: Decoding SOAP - should Flash 8 be able to decode an array of objects correctly?
          Level 7
          Not sure why I posted that XML before...it was meant to be this:

          <namesp3:getPeopleResponse
          xmlns:namesp3=" http://tom.ldu.uclan.ac.uk/LearnTools">
          <SOAP-ENC:Array xsi:type="SOAP-ENC:Array"
          SOAP-ENC:arrayType="namesp2:SOAPStruct[2]">
          <item xsi:type="namesp2:SOAPStruct">
          <zip xsi:type="xsd:string">aa123bb</zip>
          <name xsi:type="xsd:string">Bob the
          builder</name>
          <address xsi:type="xsd:string">55 Can we do it
          street</address>
          <age xsi:type="xsd:int">25</age>
          </item>
          <item xsi:type="namesp2:SOAPStruct">
          <zip xsi:type="xsd:string">55krypton66</zip>
          <name xsi:type="xsd:string">Superman</name>
          <address
          xsi:type="xsd:string">Krypton</address>
          <age xsi:type="xsd:int">35</age>
          </item>
          </SOAP-ENC:Array>
          </namesp3:getPeopleResponse>



          On Fri, 11 Aug 2006 11:56:26 +0100, Tom <na@na.com> wrote:

          >Evenin all,
          >
          >Can, or should Flash 8 be able to fully decode a SOAP call that return
          >an array of objects?
          >
          >The reason I ask is because flash can easily decode a SOAP call that
          >returns an object.
          >
          >The exact problem Im having is Flash seems to decode the SOAP call
          >into an Array of XML items. I would like it if the XML items to also
          >be decoded to the objects they represent.
          >
          >If flash should be able to do this then could it be my WSDL file that
          >is causing the prioblem or purely the SOAP call return data?
          >
          >So you can see what I am am returning as the soap call to Flash here
          >is an example of an array containing two objects with a name, age,
          >address and zip.
          >
          ><item xsi:type="namesp2:SOAPStruct">
          > <zip xsi:type="xsd:string">aa123bb</zip>
          > <name xsi:type="xsd:string">Bob the builder</name>
          > <address xsi:type="xsd:string">55 Can we do it <street</address>
          > <age xsi:type="xsd:int">25</age>
          ></item>,
          ><item xsi:type="namesp2:SOAPStruct">
          > <zip xsi:type="xsd:string">55krypton66</zip>
          > <name xsi:type="xsd:string">Superman</name>
          > <address xsi:type="xsd:string">Krypton</address>
          > <age xsi:type="xsd:int">35</age>
          ></item>
          >
          >Cheers,
          >Tom