Hi Guys,
I was facing a problem while invoking a WCF web service which was actually made for SSL (Secure Socket Layer) and runs on the https protocol. My task was to run the webservice without SSL i.e on http.
Here is how i did the same
1. Under bindings tag make sure you comment the line <security mode="Transport" /> i.e,
<bindings>
<webHttpBinding>
<binding name="myBinding" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" >
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647"
maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
<!--Commented This line-->
<!--<security mode="Transport" />-->
</binding>
</webHttpBinding>
2. Comment the line <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange"/> i.e,
<services>
<service behaviorConfiguration="Mine.Services.MyServiceBehavior" name="Mine.Services.MyService">
<endpoint address="" binding="webHttpBinding" contract="Mine.Services.IMyService" bindingConfiguration="myBinding">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<!--Commented This line-->
<!--<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange"/>-->
</service>
</services>
And that's it folks, The service now runs on HTTP protocol.
Thanks
Ritesh
I was facing a problem while invoking a WCF web service which was actually made for SSL (Secure Socket Layer) and runs on the https protocol. My task was to run the webservice without SSL i.e on http.
Here is how i did the same
1. Under bindings tag make sure you comment the line <security mode="Transport" /> i.e,
<bindings>
<webHttpBinding>
<binding name="myBinding" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" >
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647"
maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
<!--Commented This line-->
<!--<security mode="Transport" />-->
</binding>
</webHttpBinding>
2. Comment the line <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange"/> i.e,
<services>
<service behaviorConfiguration="Mine.Services.MyServiceBehavior" name="Mine.Services.MyService">
<endpoint address="" binding="webHttpBinding" contract="Mine.Services.IMyService" bindingConfiguration="myBinding">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<!--Commented This line-->
<!--<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange"/>-->
</service>
</services>
And that's it folks, The service now runs on HTTP protocol.
Thanks
Ritesh