Having trouble successfully deploying WCF service to public web site

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I'm fairly new to deploying WCF web services and am running into
problems deploying my WCF service to a public web site. I want this
web service to be accessible by clients outside my domain.

The problem I'm running into first off is that the WSDL contains the
server's name instead of the web site's name. The WSDL elements and
attributes listed below contain "http://<server_internal_name>/..."
instead of "http://<web_site_name>/...":
* xsd:import schemaLocation
* soap12:address location/@location
* wsa10:Address

The second manifestation of the problem is that when I create a client
app in VS 2008 and then add a service reference to this service (using
the Add Service Reference option in the Solution Explorer), the
endpoint address also contains the server's name instead of the web
site name. One other thing that I notice is that when I try to add the
reference to the web service, the MetadataSource address in the svcmap
file refers to the "/mex" address instead of pointing to the wsdl
(which looks like "...?wsdl").

I have tried to fix this by adding <baseaddresses>/<add
baseaddress="..." /></baseaddresses> entries into the web.config for
the web service. Also added <identity><dns value="..." /></identity>
entries in an attempt to fix this. I'm hoping that all is wrong is
that I'm missing some configuration values.

Can somebody tell me what I'm doing wrong? Thanks!
.



Relevant Pages

  • Web Reference vs. Service Reference
    ... I added the web service as a service reference. ... Message="Could not find default endpoint element that references contract 'MyValWebService.MyValidationSoap' in the ServiceModel client configuration section. ... at System.ServiceModel.Description.ConfigLoader.LoadChannelBehaviors(ServiceEndpoint serviceEndpoint, String configurationName) ... I deleted the service reference and added it as a web reference and now it will work in release mode. ...
    (microsoft.public.dotnet.languages.vb)
  • RE: Calling wsHttpBinding service under IIS
    ... I have created a WCF service and exposed it though a svc file. ... call this service with a ASP.Net client (Add Service Reference), ... When I call this service as it was a Web Service (Add Web ...
    (microsoft.public.dotnet.framework)
  • WCF endpoint certificate identity
    ... I use WCF with my web service calls and all of the communication is secured ... with certificates. ... When I create my service reference, an endpoint gets ...
    (microsoft.public.dotnet.framework.aspnet.webservices)