Just to add a little color to this about creating a proxy in two lines J

 

The proxy that Flex 1.5 provides (and Flex Enterprise Services will provide) is not a simple straightforward re-direction to the site of your choice.  We also make sure that things like cookies are transferred correctly, protect the proxy from being used in DOS attacks, capture header errors that the Player is unable to process and convert them for use by the ActionScript, etc.  There are a number of elements that need to be considered when writing a true proxy for Flex apps, but with that said if you are simply trying to access an XML file on a server or do something where no authentication and no cookies will be needed you may be able to write a simple proxy in the language of your choice, and that link on the labs site is a good place to get started.

 

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of Sho Kuwamoto
Sent: Tuesday, October 25, 2005 9:01 AM
To: [email protected]
Subject: RE: [flexcoders] Re: Web-services giving hell to implement

 

One more thing. You can write your own proxy. Depending on which server
language you are using, and whether you need to deal with authentication
or not, it can be as simple as two lines of code.

Please see:

http://labs.macromedia.com/wiki/index.php/Flex:Accessing_Data

-Sho

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Dave Wolf
Sent: Tuesday, October 25, 2005 8:44 AM
To: [email protected]
Subject: [flexcoders] Re: Web-services giving hell to implement

The model actually hasnt changed.  In Flex 1.5 you could also use
the crossdomain.xml solution to allow the player to connect to a web
service on a different host then it was downloaded from. 

Now in Flex1.5 you had the flexproxy servlet which would act as a
proxy and redirect those calls tot he third party.  You wouldnt need
crossdomain.xml then.  However, you could bypass the proxy and then
use crossdomain.xml.  All youre choice.

In Flex2 you will need the enterprise data services to have access
to the proxy.  So to do what you want, and not rely on
crossdomain.xml in Flex2 you need the more expensive (in line with
Flex 1.5) version.

The difference is for the much lower price you can skip needing the
proxy *if* you own the service and can use crossdomain.xml.  If you
dont, you need the enterprise version.

Make sense?


--
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email: [EMAIL PROTECTED]
Office: 866-CYNERGY x85

- In [email protected], knly browne <[EMAIL PROTECTED]>
wrote:
>
> Good day awll...
>
> I have a little quirk with connecting to web-services in Flex 2.0.
In flex
> 1.x you simply configured the service file that resides on the
server and
> then you add you web-service object to you applications configure
the wsdl
> and you good to go..
>
> For flex 2.0 i see that the model had changed dramatically...now
there is
> the advent of the crossdomain.xml that must be placed in the root
directory
> of the server that you are trying to get the service from, so the
Question
> now becomes if the server resides half way around the world..how
in gods
> name do i place a config file on that server...
> now the server that give me the web-service is implemented using
rem-objects
> for delphi.. so its not a java server its a delphi program..how do
i install
> a crossdomain.xml file on that appication..
>
> Flex 2.0 doesn't come with any web-services example...
> As of present i have no idea of how to use web-services in Flex 2.0
> can anyone out there assist me..?
> Thanks
>
> --
> Kenlie Browne
> Software Developer
>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to