Saturday, October 28, 2006 9:39 AM
I am having difficulties with WCF service, hosted on IIS6.0 and computer name.
My virtual directory is accessible using domain name, but my service is created using "computer name" instead of domain name:
"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 https://portal/apis/services/3.0/CatalogService.svc?wsdl "
"Portal" is computer name. How I can force the service to use domain name instead of "portal"?
Service configuration is:
<service name="Acme.Ecommerce.Services.Library.CatalogService" behaviorConfiguration="returnFaults">
<endpoint contract="Acme.Ecommerce.Services.Library.ICatalogService" binding="basicHttpBinding" bindingConfiguration="BasicSecureHttpBinding"/>
<endpoint contract="IMetadataExchange" binding="mexHttpsBinding" address="mex"/>
Saturday, October 28, 2006 8:45 PM
Using the HostNameComparisonMode element into your binding configuration section you can resolve this issue.
More Information about HostNameComparisonMode in
- HttpTransportBindingElement.HostNameComparisonMode Property
- How HostNameComparisonMode Works
- Demystifying HostNameComparisonMode: Wildcards, and URI Matching
Sunday, October 29, 2006 3:16 PM
The problem was related to IIS/SSL. I have found the answer here: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=423623&SiteID=1 (06-12-2006)