We are not able to consume the WCF services hosted on Sharepoint site , The moment we happen to enable the site with SSL. Following is the error that we are receving. The SSL is enabled directly on the Network Load Balancer.
There was an error downloading 'https://********/_layouts/spservice/spservice.svc'.
The request failed with HTTP status 400: Bad Request.
Metadata contains a reference that cannot be resolved: 'https://******/_layouts/spservice/spservice.svc'.
Content Type application/soap+xml; charset=utf-8 was not supported by servicehttps://******/_layouts/spservice/spservice.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 'text/xml; charset=utf-8'..
If the service is defined in the current solution, try building the solution and adding the service reference again.
Regards,
JP