If the firewall is simply a passthrough to the web services then you need to adjust the WSDL to use the external IP address rather than the internal IP address.  That’s what would cause the problem outside the firewall.  You could also look into setting the endpointURI on the WebService which will override the URI in the WSDL.  You would simply override it to be the same as the path you specified for the WSDL itself.  This would therefore not require a proxy.  I am assuming that your SWF is served from the same URL as the firewall at this point, if it is not then David’s comment about crossdomain.xml comes into play (or the need for the FDS proxy at the same location where the SWF was served).

 

HTH,

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of David Mendels
Sent: Tuesday, August 15, 2006 2:33 PM
To: [email protected]
Subject: RE: [flexcoders] Flex Data Services

 

Hi,

 

Others are more knowledgable on the Flex team, but I think the options below are not your only options.

 

Please look into whether using the crossdomainXML file on your server solves the problem.  Secondly, you may need to proxy the web service--FDS comes with a proxy, but if you are only using it for that and not taking advantage of dataSerices or messaging or remoting you could just write a proxy yourself.  This is generally not a large project.

 

-David

 


From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Franck de Bruijn
Sent: Tuesday, August 15, 2006 1:49 PM
To: [EMAIL PROTECTED]ups.com
Subject: RE: [flexcoders] Flex Data Services

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]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Samuel D. Colak
Sent: Tuesday, August 15, 2006 6:48 PM
To: [EMAIL PROTECTED]ups.com
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