Skip navigation
nmpg\\pmorris
Currently Being Moderated

Discrepancy in XML between Flex 3.4 and Flex 4.0

Nov 10, 2009 7:07 PM

I have an ASP.NET Web service to which I pass a String of well-formed XML from AS3 as in:

 

<request><arg>value</arg><otherarg>value</otherarg></request>

 

When I compile my project using the Flex 3.4 SDK the Web service accepts my XML string and sends back the data. When I compile it using the 4.0 SDK the .NET Web service returns the following error:

 

System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.

 

Any thoughts?

 
Replies
  • Currently Being Moderated
    Nov 10, 2009 8:59 PM   in reply to nmpg\\pmorris

    You can use toXMLString to see if the result is different in Flex 4.

     

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc.

    Blog: http://blogs.adobe.com/aharui

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 10, 2009 9:20 PM   in reply to nmpg\\pmorris

    I was asking for you to trace() the toXMLString() just before sending to see if it is different between versions.  If they are in fact the same, the next thing to do would probably be to use a network monitor to see what gets sent over the wire.

     

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc.

    Blog: http://blogs.adobe.com/aharui

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 10, 2009 10:56 PM   in reply to nmpg\\pmorris

    Hopefully engineers from the webservices team will know the answer.  Sounds like something is encoding the XML.

     

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc.

    Blog: http://blogs.adobe.com/aharui

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 12, 2009 3:15 AM   in reply to Flex harUI

    There was a similar discussion around this problem. Please refer http://forums.adobe.com/message/1875795#1875795

     

     

    Thanks,

    Radhakrishna

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points