Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WCF not using computer name instead of domain name when viewing MyService.svc?wsdl

My WCF serice seems to be using the computer-name instead of the domain name. When I view the MyService.svc?wsdl link it is showing my computer name.

Where do I add my domain name in the web.config? Endpoint address, baseaddress or identity?

Note: I am using SSL so it has to be https://www.example.com/myservice.svc

like image 681
Blankman Avatar asked Jan 22 '09 17:01

Blankman


1 Answers

WCF 4.0 has solved this issue in some instances with a new config option that use Request Headers:

    <behaviors>         <serviceBehaviors>             <behavior name="AutoVaultUploadBehavior">                 <useRequestHeadersForMetadataAddress>                     <defaultPorts>                         <add scheme="https" port="443" />                     </defaultPorts>                 </useRequestHeadersForMetadataAddress> 
like image 128
nick_alot Avatar answered Oct 21 '22 11:10

nick_alot