Thursday, April 7, 2011

A WCF service behind a firewall generates a wrong wsdl URI

Hi, I developed a WCF service and i have published it with IIS. All goes well inside the local network but when the service is accessed by an external client from the internet, redirected by a firewall, the service generates a local wsdl uri that cannot be solve by the client.

Something like this:

  • URI needed: http://external_url/service.svc?wsdl
  • URI created: http://internal_url/service.svc?wsdl

I would like to continue using the automatic generation of the wsdl file without indicating an external path. I also have prove manipulating the ServiceBehavior attribute into the service class but the problem persists.

How can I do it?

From stackoverflow

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.