I am trying to figure out how to configure my web.config (client) to consume two different WCF web services, one using the other using buttons
I have two endpoints, I think I need two different binding configurations. This is my current node binding:
<basicHttpBinding> <binding name="WebServiceProxyServiceSoapBinding" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:01:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="2147483647" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647" 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="None" proxyCredentialType="None" realm="" /> <message clientCredentialType="UserName" algorithmSuite="Default" /> </security> </binding> </basicHttpBinding>
I cannot add another basicHttpBinding node. The fact is that if EVERYTHING, I changed, was a mode parameter in <security mode="Transport"> , then the binding will work fine for one or the other endpoint.
This seems like a common problem, but could not find an answer. In general, I am not very worried with WCF (if this is not obvious) beyond simple consumption and challenge. Any help would be GREAT!
This article was a close, but not quite the same problem, because they did not need a different security mode: How to use multiple WCF services in one client
Thanks in advance.
SCEV
source share