it's https://service.premilance.com/Company.svc, but the svcutil tells
me to get it from https://pserver1/Company.svc?wsdl which is
incorrect.. I have no clue how to fix it and i'm struggling for two
days already :(
On Mar 13, 3:09 pm, "Tiago Halm" <th...@nospam.hotmail.comwrote:
If hosting in IIS, just set the hostheader of the website to the public
hostname. The generated WSDL/XSDs will contain the hostname with which it
was accessed.
Tiago Halm
<kiern...@yahoo.comwrote in message
news:c8**********************************@d21g2000 prf.googlegroups.com...
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:AddressThe 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="..." /></baseaddressesentries 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!