WCF host address question

Posted by Estelle on Stack Overflow See other posts from Stack Overflow or by Estelle
Published on 2010-04-08T21:22:10Z Indexed on 2010/04/08 22:23 UTC
Read the original article Hit count: 213

Filed under:

when I setup the wcf service on a web server, I set the end point address as

<endpoint address="http://www.mydomin.com/clientname/happy.svc" 
              binding="basicHttpBinding" 
              name="happysvcbasic" 
              contract="happysvc.Ihappysvc">

</endpoint>

but when type in above address on a browser, I get a different host name, which is the internal server name, such as,

To test this service, you will need to create a client and use it to call the service. You can do this using the svcutil.exe tool from the command line with the following syntax:

svcutil.exe http://internalservername.domain/clientname/happy.svc?wsdl

I tried to add the host/baseaddress tag, but make no difference, what I missed? thanks for help.

© Stack Overflow or respective owner

Related posts about wcf