HTTPS for WS CP .NET Client
> [1]
Assuming that a .NET client has been previously configured without secure HTTPS, and all of the procedures of generating, exporting, and importing certificates have been completed, you must edit the existing .NET client's app.config to make it work over HTTPS. The following example shows the required changes in italics:
<?xml version="1.0" encoding="utf-8" ?> <configuration> <system.serviceModel> <behaviors> <endpointBehaviors> <behavior name="ProvideClientCertificate"> <clientCredentials> <clientCertificate storeLocation="CurrentUser" x509FindType="FindByIssuerName" findValue="clienthost.us.int.genesyslab.com"/> </clientCredentials> </behavior> </endpointBehaviors> </behaviors> <bindings> <basicHttpBinding> <binding name="iWebServiceCapturePointHttpBinding" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <security mode="Transport"> <transport clientCredentialType="Certificate"/> </security> </binding> </basicHttpBinding> </bindings> <client> <endpoint address="https://zoolander.us.int.genesyslab.com:10080/Genesys/Interaction/WSCP_812_zoo/WebServiceCapturePoint" binding="basicHttpBinding" bindingConfiguration="iWebServiceCapturePointHttpBinding" behaviorConfiguration="ProvideClientCertificate" contract="WSCP.iWebServiceCapturePoint" name="iWebServiceCapturePointHttpBinding" /> </client> </system.serviceModel> </configuration>
This page was last edited on June 18, 2020, at 10:43.
Comments or questions about this documentation? Contact us for support!