web service showing localhost not FQDN ?

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.
 
S

Scott

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/
 
S

Scott

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
 
S

Scott

spotted the website was offline, after server reboot it did not restart, not
sure why yet.
 
S

Scott

error when trying to start says "the parameter is incorrect".

No errors in any of the event logs.
 
S

Scott

found it, the SSL IP somehow changed to 255.255.255.255 during one of the
processes above.
 
S

Scott

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 :(
 
S

Scott

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,965
Messages
2,570,148
Members
46,710
Latest member
FredricRen

Latest Threads

Top