Friday, March 27, 2009

WCF: Display external server name in WSDL when using SSL/HTTPS

Hi!
Here's how to get rid of the internal server domain name that wcf is displaying by default in the wsdl files:

C:\Inetpub\AdminScripts> adsutil set /w3svc/1/SecureBindings ":443:www.example.com"
(where "1" is the Web Site Identifier and "www.example.com" is your external server name)


This comes in handy when you're exposing a WCF service to the internet and clients are complaining about (from php):
Parsing Schema: can't import schema from 'https://nowcfweb002/CrmProxyService.svc?xsd=xsd0

Thanks to Johannes Hansen for this :)

No comments: