What I'm trying to do is setup a call to a service on another server. So far.. I've created the proxy and got the config information.
What I'm having trouble finding is how to set the security. They are using message security and client certificates.
here is my app.config file..what I have so far. Any information on setting the security up would be helpful. Most of the examples I've come across all have to do with setting up a service and securing it on the hosting end.
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="CCaRWebServiceSoap11Binding" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:01:00" sendTimeout="01:00: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="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
<customBinding>
<binding name="CCaRWebServiceSoap12Binding">
<textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16"
messageVersion="Soap12" writeEncoding="utf-8">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
</textMessageEncoding>
<httpTransport manualAddressing="false" maxBufferPoolSize="524288"
maxReceivedMessageSize="65536" allowCookies="false" authenticationScheme="Anonymous"
bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
keepAliveEnabled="true" maxBufferSize="65536" proxyAuthenticationScheme="Anonymous"
realm="" transferMode="Buffered" unsafeConnectionNtlmAuthentication="false"
useDefaultWebProxy="true" />
</binding>
</customBinding>
</bindings>
<client>
<endpoint address="serviceEndpoint1address/"
binding="basicHttpBinding" bindingConfiguration="CCaRWebServiceSoap11Binding"
contract="CCaRWebServicePortType" name="CCaRWebServiceHttpSoap11Endpoint" />
<endpoint address="serviceEndpoint2address/"
binding="customBinding" bindingConfiguration="CCaRWebServiceSoap12Binding"
contract="CCaRWebServicePortType" name="CCaRWebServiceHttpSoap12Endpoint" />
</client>
</system.serviceModel>
I sort of got thrown into this project so WCF is somewhat foreign to me.