Select to view content in your preferred language

Problem with FlexViewer Widget calling .NET web service behind Reverse Proxy

709
1
05-11-2011 03:55 PM
MicheleDunham
Emerging Contributor
Hello,

I have a FlexViewer 2.2 widget that calls a 2008 .NET web service running behind a reverse proxy.  The internal web server hosting the web service runs on a non-standard port.

In Flex 3 a WSDL file was added directly to the Flex application.  In Flash 4 the WSDL is referenced at runtime (Please correct me if there is a way around this).

The IIS7 "auto-generated" WSDL that the FlexViewer widget retrieves (I can see the same WSDL in a browser) references the reverse proxy domain but incorporates the port of the internal web server;

I am guessing the "Channel Security Error - Security Error accessing URL" that I'm seeing in the Flash debugger is because the the app is trying to connect to a nonstandard port on the Reverse Proxy server domain rather than connect to port 80 like it should.  From the FlexViewer client, Fiddler2 returns a 503 error for the web service .asmx file (Network error - Operation timeout).

I'd really appreciate some advice on how best to correct this problem on either the Flex or .NET side?

Thanks,
Michele
Tags (2)
0 Kudos
1 Reply
MicheleDunham
Emerging Contributor
I found this post which explains how to create and add a class in your web service that extends the SoapExtensionReflector class to modify parts of the Soap Address Location in the auto-generated WSDL.  It worked for me.

http://blogs.msdn.com/b/kaevans/archive/2005/11/16/493496.aspx
0 Kudos