Quantcast
Channel: WCF, ASMX and other Web Services
Viewing all articles
Browse latest Browse all 555

After deploying the WCF service on IIS under SSL, In svcutil.exe https is not comming

$
0
0

Hi All,

I have deployed the WCF service on IIS under SSL. When, I access through browser its open properly, as below URL:

https://mysite/Staging/adms/AdmsService.svc.

BUt, on this page there is svcutill.exe url which shows without https: 

svcutil.exe:  http://mysite/Staging/adms/AdmsService.svc?wsdl

I have tried like: HttpsGetEnable=true

Also, When I do HttpGetEnable=false it shows the https with machine host name:

svcutil.exe https://hostname/Staging/adms/AdmsService.svc?wsdl

Also, https is not coming in targetNamespacespace:

--------------

<wsdl:types>
<xsd:schema targetNamespace="http://tempuri.org/Imports">
<xsd:import schemaLocation="http://mysite/Staging/adms/AdmsService.svc?xsd=xsd0" namespace="http://tempuri.org/"/>
<xsd:import schemaLocation="http://mysite/Staging/adms/AdmsService.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>
<xsd:import schemaLocation="http://mysite/Staging/adms/AdmsService.svc?xsd=xsd2" namespace="http://schemas.datacontract.org/2004/07/ns_adms"/>
</xsd:schema>
</wsdl:types>

-------------------

When try to add service reference its giving the following message.

There was an error downloading 'https://mysite/Staging/adms/AdmsService.svc/$metadata'.
The request failed with HTTP status 400: Bad Request.
Metadata contains a reference that cannot be resolved: 'https://mysite/Staging/adms/AdmsService.svc'.
Content Type application/soap+xml; charset=utf-8 was not supported by service https://mysite/Staging/adms/AdmsService.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.

Kindly suggest.

It will be great help for me.


Viewing all articles
Browse latest Browse all 555

Trending Articles