Webservices are indeed never meant to be hard and if they work it’s totally simple. If they don’t work ... you’re in for trouble: check the posts ... :) Unfortunately, my feeling tells me that Flex has more problems communicating with .Net webservices than Java (AXIS based) webservices.

 

For the problem mentioned originally by Scott, the following:

 

You cannot access the webservices behind a firewall directly from the Flex application. The Flex application will be served to the client, but in the end it does not matter. The Flex application will run locally. And if the local machine cannot reach behind the firewall you’re out of luck. Even if the webservices are not behind the webservices you probably will have a problem accessing them, since Flash only allows you to address URLs with the base identical to the URL you have downloaded your app from. Since you are talking about two different machines, these base addresses will not match and you’ll have a security issue.

 

To solve this you have to the ‘proxy’ way, which gives you 2 directions:

  • On the machine where you host your Flex application, set-up a server hosting your own webservices. These webservices can be called from the Flex app. The implementation behind these webservices can then forward the Flex requests to the real server.
  • On the machine where you host your Flex application, set-up FDS. But here my experience lacks, so I cannot give you guidelines how to accomplish that.

 

Good luck!

Franck

 


From: [email protected] [mailto:[email protected]] On Behalf Of Samuel D. Colak
Sent: Tuesday, August 15, 2006 6:48 PM
To: [email protected]
Subject: Re: [flexcoders] Flex Data Services

 

You can use Flex alone with its webservice support.
Im not sure what all the fuss is with FDS but webservices were never meant to be that hard in general.


On 15/8/06 08:10, "scott.kinder" <scott.kinder@yahoo.com> wrote:


 
 

Hi All,

I'm new to Flex 2 and Flex Data Services. I have a problem and I need
to find out if I need Flex 2 Data Services. I have an external server
serving up a SWF, and then a server behind the firewall that contains
.NET web services. If I want my users to be able to browse to the SWF,
and then communicate with the .NET services behind the firewall, do I
need to use Flex Data Services or can I use regular Flex 2?

Cheers

Scott Kinder

 
    

 

__._,_.___

--
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