2 Replies Latest reply on May 25, 2006 1:25 AM by firmgoal

    Problem in Flex 2 beta2 WebService : Convert data from SOAP to ActionScript

      Rule In "Adobe Flex Help" :
      XML schema type --------> ActionScript type
      string --------> If the string is simple, it converts to String. If it contains attributes, it converts to Object.
      I have a problem with this rule.

      WebService Response:
      <?xml version='1.0' encoding='UTF-8'?>
      <soap:Envelope xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd=" http://www.w3.org/2001/XMLSchema" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance">
      <getBooksResponse xmlns=" http://xfire.codehaus.org/BookService">
      <out xmlns=" http://xfire.codehaus.org/BookService">
      <ns1:Book xmlns:ns1=" http://demo.xfire.codehaus.org">
      <author xmlns=" http://demo.xfire.codehaus.org"></author>
      <isbn xmlns=" http://demo.xfire.codehaus.org"></isbn>
      <relatedBook xmlns=" http://demo.xfire.codehaus.org" xsi:nil="true" />
      <title xmlns=" http://demo.xfire.codehaus.org"></title>

      Converted ActionScript object:

      obj = Object
      [author = Object]
      [isbn = Object]
      [relatedBook = null]
      [title = Object]
      [xmlns:ns1 = " http://demo.xfire.codehaus.org"

      author,isbn,title should be String type with value String(""), but result is a Object with a property [xmlns=" http://demo.xfire.codehaus.org"

      Anybody know how to resolve this problem?