code_junkie

WCF not using my domain name, but rather my computer name when viewing MyService.svcwsdl

Nov 13th, 2011
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. <behaviors>
  2. <endpointBehaviors>
  3. <behavior name="xxx">
  4. <wsdlExtensions location="http://some-hostname-visible-from-outside/path-to-a-service/service.svc" singleFile="True" />
  5. </behavior>
  6. ...
  7.  
  8. <sites>
  9. <site name="Default Web Site" id="1">
  10. <application path="/">
  11. <virtualDirectory path="/" physicalPath="%SystemDrive%inetpubwwwroot" />
  12. </application>
  13. <bindings>
  14. <binding protocol="http" bindingInformation="*:80:puck" />
  15. <binding protocol="net.tcp" bindingInformation="808:*" />
  16. <binding protocol="net.pipe" bindingInformation="*" />
  17. <binding protocol="net.msmq" bindingInformation="localhost" />
  18. <binding protocol="msmq.formatname" bindingInformation="localhost" />
  19. <binding protocol="http" bindingInformation="*:80:puck.idunno.org" />
  20. <binding protocol="http" bindingInformation="*:80:localhost" />
  21. <binding protocol="https" bindingInformation="*:443:" />
  22. </bindings>
  23. </site>
  24. ....
  25. </sites>
  26.  
  27. <binding protocol="https" bindingInformation="*:443:puck" />
  28.  
  29. <behaviors>
  30. <serviceBehaviors>
  31. <behavior name="AutoVaultUploadBehavior">
  32. <useRequestHeadersForMetadataAddress>
  33. <defaultPorts>
  34. <add scheme="https" port="443" />
  35. </defaultPorts>
  36. </useRequestHeadersForMetadataAddress>
  37.  
  38. cscript.exe adsutil.vbs set /w3svc/<site identifier>/SecureBindings ":443:<host header>"
Add Comment
Please, Sign In to add comment