Flex through Flash Builder 4; Connecting to a dynamic XML feed: "The response is not a valid XML or
Posted
by jtromans
on Stack Overflow
See other posts from Stack Overflow
or by jtromans
Published on 2010-04-18T12:10:49Z
Indexed on
2010/04/18
12:13 UTC
Read the original article
Hit count: 399
I am learning how to use Flex with Adobe Flash Builder 4 standalone. I am working my through the Adobe Flash Build 4 Bible by David Gassner. This has led me to create my own micro problems to try and solve.
I am trying to connect to a dynamix XML feed created by the following aspx page: generate_xml.aspx
When I create the data connection through the Data/Service panel, I can pick between XML and HTTP. I figured because the generate_xml.aspx has to generate the XML file first, I should use the HTTP service as opposed to the XML. The HTTP service offers GET, which seems to be the kinda thing I want.
However, I am really struggling to do this. I keep getting:
"The response is not a valid XML or a JSON string"
The actual STATIC generated XML file that is created by this page works perfectly when I save it and manually connect with the XML service. Therefore I know my XML code is properly formatted and contains no other HTML of JavaScript.
I figure my problem occurs because the page itself is .aspx, but I cannot work out how to successfully ask Flex to request the output of this page, rather than the page itself.
© Stack Overflow or respective owner