Webservices configuration to activate HTTPS
Learn how to activate https for CRM webservices.
CRM.webservices is pre-configured for plain HTTP only.
Below is the configuration to activate HTTPS.
web.config (server-side)
-
HTTP (default)
<security mode="None"/>
<endpoint.... binding="mexHttpBinding">
<serviceMetadata httpGetEnabled="true">
-
HTTPS example
<security mode="Transport"/>
<endpoint.... binding="mexHttpsBinding" (2 times)
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true">
update.web.services.test.exe.config (client-side test tool)
-
HTTP (default)
<basicHttpBinding>
<binding name="Basic" allowCookies="false" />
<binding name="BasicHttpBinding_IXml" maxReceivedMessageSize="5000000" />
</basicHttpBinding>
-
HTTPS example
<basicHttpBinding>
<binding name="Basic" allowCookies="false" />
<binding name="BasicHttpBinding_IXml" maxReceivedMessageSize="5000000">
<security mode="Transport">
<transport clientCredentialType="None" proxyCredentialType="None" realm=""/>
<message clientCredentialType="Certificate" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>