After uncommenting some tags in web.config file in CWS folder, I can finally add Service Reference over HTTPS. Specifically, I can add Authentication.svc and DocumentManagement.svc to my project.
But when I try to add ContentService, I get this error:
Metadata contains a reference that cannot be resolved: 'https://myserver/les-services/ContentService.svc?wsdl'.
The WSDL document contains links that could not be resolved.
'xmime:expectedContentTypes' is a duplicate attribute name. Line 1, position 502.
Metadata contains a reference that cannot be resolved: 'https://myserver/les-services/ContentService.svc'.
Content Type application/soap+xml; charset=utf-8 was not supported by service https://myserver/les-services/ContentService.svc. The client and service bindings may be mismatched.
The remote server returned an error: (415) Cannot process the message because the content type 'application/soap+xml; charset=utf-8' was not the expected type 'multipart/related; type="application/xop+xml"'..
If the service is defined in the current solution, try building the solution and adding the service reference again.
Am I missing something in IIS or somewhere?