Since I almost always have some business logic to perform on the server for any data service call, if only to log it, I just make all calls through an asp.net back-end (I use vb.net also) It is not a true "proxy", I don't attempt to redirect urls, but rather use HTTPService to post name=value pairs from Flex to the server. On of the pairs is "action=whatever" which tells the back end how to handle the request, through a Select Case.
I then make my WebService or XMLHTTP call or do my business logic, then wrap the result in an xml root node (with status/error info) and return it to the Flex client. Visual Studio's Web Service proxy generation and debugging make consuming webservices very easy, and I don't ever have any crossdomain issues. Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of aceoohay Sent: Monday, January 28, 2008 6:37 PM To: [email protected] Subject: [flexcoders] Re: Yahoo Maps AS3 integration problem Bill: Thank for the post. I shouldn't have been so flippant in the earlier post. Obviously what I need is more concrete exampleas of how to do this. My language of choice is ASP.NET, preferably VB. Are there any examples of how to setup a proxy server? If the proxy server approach is so easy to accomplish why doesn't yahoo allow full access via crossdomain.xml? This application is an intranet app for about 40 users. --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "bill_reddy" <[EMAIL PROTECTED]> wrote: > > --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "aceoohay" <pauls@> wrote: > > > > The answer to life, the universe and everything is 42. > > > > Would you be so kind as to share a bit more information with the > > unwashed masses? > > > > Paul > > --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Alex Harui" <aharui@> wrote: > > > > > > The workaround is a proxy server. > > > > > > > > > > > > ________________________________ > > Paul,here's a simple proxy script example in php: > > <?php > > if(isset($_GET['file'])) { > // Use preg_match to do simple validation on the url, > // session, etc... Optional of course. > if(preg_match("INSERT PATTERN HERE", $_GET['file'])) { > readfile($_GET['file']); > } > } > ?> > > > In flex, the url to the yahoo image would then be something like: > http://localhost/some_proxy_script.php? <http://localhost/some_proxy_script.php?> > file=http://www.yahoo.com/somefile.jpg <http://www.yahoo.com/somefile.jpg> > > > Credit goes to Doug McCune. >

