web service showing localhost not FQDN ?

  • Thread starter Thread starter Scott
  • Start date Start date
S

Scott

A Web service has been publish but the svcutil.exe path (displayed when you
browse to the service.svc page) shows local host as opposed to the domain
name its been published on (i.e address bar ok, its the svcutil.exe path
thats wrong). Developers need FQDN here, How can i change this ?

Its picking up whatever local host its running on, must be some switch in
the app to allow me to set this somewhere ?

thanks for any help.
 
Scott said:
A Web service has been publish but the svcutil.exe path (displayed when you
browse to the service.svc page) shows local host as opposed to the domain
name its been published on (i.e address bar ok, its the svcutil.exe path
thats wrong). Developers need FQDN here, How can i change this ?

Its picking up whatever local host its running on, must be some switch in
the app to allow me to set this somewhere ?

thanks for any help.

http://gavinmckay.wordpress.com/2009/03/24/howto-fix-wcf-host-name-on-iis/
 
Hi,

I have followed the method above several times but cannot access my
service.scv page anymore.

Amended meta data for 80 and 443
Tried domain.com and https://domain.com
Corerct site ID was used
IIS reset
Restarted server

Any ideas ?

Scott
 
spotted the website was offline, after server reboot it did not restart, not
sure why yet.
 
error when trying to start says "the parameter is incorrect".

No errors in any of the event logs.
 
found it, the SSL IP somehow changed to 255.255.255.255 during one of the
processes above.
 
sorry , update to the above. the service stopped because when i run

cscript.exe //nologo %systemdrive%\inetpub\adminscripts\adsutil.vbs set
W3SVC/your_website_identifier_here/SecureBindings ":443:my.publicserver.com"

the IP under WEBSITE / ADVANCED for the SSL socket changes to
255.255.255.255

When i delete this entry (wont let me amend) and enter the correct IP the
site starts but the

svcutil.exe https://localhost/Service.svc?wsdl

shows local host still :(
 
found this:


You can manually specify the complete address the service should use in the
web.config as opposed to having the ServiceHost figure it out for you. You
have to set the base address of your service:
<service behaviorConfiguration="Behaviour1" name="Api.Poll"> <endpoint
address="soap" binding="basicHttpBinding" bindingConfiguration="soapBinding"
contract="Api.IPoll" /> <endpoint address="mex" binding="mexHttpBinding"
contract="IMetadataExchange" /> <host> <baseAddresses> <add
baseAddress="http://www.mydomain.com/Api" /> <add
baseAddress="http://10.10.20.30/Api" /> </baseAddresses> </host>
</service>Someone comment that IIS ignorse this BaseAddress.
 
Back
Top