Hey Tracy, this looks pretty easy, I am using ASP.NET with Flex 3.0
and but when I create an aspx page I get an error with the code
below... I don't use code behind and put it on one page and try to
access the page itself.  Do I need to access the page some other way
or modify code?  the RSS is an example feed, my RSS feeds will need a
variable ie... http://finance.yahoo.com/rss/headline?s=MSFT (the
ticker symbol will be the variable).

I am trying to access the feeds through Flex SWF.

Any suggestions?

The remote server returned an error: (404) Not Found.

Here is code

Craig


<%@ Page Language="C#" %>
<%@ Import Namespace="System.Xml" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

<script runat="server">
void page_load(Object sender, EventArgs e)
{
string strOutput;

XmlDocument myXml = new XmlDocument();
myXml.Load("http://www.weather.gov/alerts/ak.rss";);

strOutput = myXml.OuterXml;

Response.ContentType = "text/xml";
Response.Write(strOutput);
} 
</script>






--- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> An of course you can generalize this by passing an url to the aspx page
> from flex:
> 
> var oRequest:Object = {url=" www.whatever.com/example.xml"};
> 
> myHTTPRequest.send(oRequest);
> 
>  
> 
> then in the aspx doing:
> 
> myXml.Load(Request("url"));
> 
>  
> 
> Tracy
> 
>  
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of n0ctule
> Sent: Friday, August 03, 2007 9:11 PM
> To: [email protected]
> Subject: [flexcoders] Re: ASP.NET RSS proxy?
> 
>  
> 
> --- In [email protected] <mailto:flexcoders%40yahoogroups.com>
> , "Nick Durnell" <nick@> wrote:
> >
> > Hi all,
> > 
> > I've read here that in order to access RSS data in my Flex application
> 
> > (from sites with no crossdomain policy files) I will need to proxy the
> 
> > RSS data on the server which hosts the Flex application.
> > 
> > I have seen links to PHP proxy scripts but does anyone have an ASP.NET
> 
> > equivalent?
> > 
> > Thanks,
> > 
> > Nick.
> >
> 
> Hi Nick
> 
> Try this:
> 
> <%@ Page Language="C#" Debug="true" %>
> <%@ Import Namespace="System.Xml" %>
> 
> <script runat=server>
> void page_load(Object sender, EventArgs e)
> {
> string strOutput;
> 
> XmlDocument myXml = new XmlDocument();
> myXml.Load("www.whatever.com/example.xml");
> 
> strOutput = myXml.OuterXml;
> 
> 
> Response.ContentType = "text/xml";
> Response.Write(strOutput);
> } 
> </script>
>


Reply via email to