2015-08-15 42 views
0

我正在使用wcf服務和ssl卸載環境。所以我必須設置HTTP通過自定義綁定綁定...如何將wsdl端口中的http更改爲https wcf

請看下面的WSDL:端口

<wsdl:service name="sample"> 
<wsdl:port name="httpsProxyEndPoint" binding="httpsProxyEndPoint"> 
<soap:address location="http://sample.portal.co.in/sample.svc/api"/> 
</wsdl:port> 
</wsdl:service> 

現在我想以https

<wsdl:service name="sample"> 
<wsdl:port name="httpsProxyEndPoint" binding="httpsProxyEndPoint"> 
<soap:address location="https://sample.portal.co.in/sample.svc/api"/> 
</wsdl:port> 
</wsdl:service>`enter code here` 
+0

...出了什麼問題?你需要什麼幫助? –

+0

馬特,我想改變SOAP地址的protocal HTTP以https 目前我有 '<肥皂:地址位置= 「http://sample.portal.co.in/sample.svc/api」/>' 但我需要用** https **替換http –

回答

0

你可能需要一個protocolMapping改變位置在服務的配置中。

<system.serviceModel> 
    <protocolMapping> 
     <add binding="httpsProxyEndpoint" scheme="https" /> 
     <add binding="httpsProxyEndpoint" scheme="http" /> 
    </protocolMapping>  
</system.serviceModel> 
+0

我應用了你的建議,但不工作 –