title: Calling a WS-Security Java Web service with C# Client
body: <p>I'm new at using WCF with secure services.</p>
  
  <p>I'm trying to connect to a java webservice with secure HTTPS transport and it uses WS-Security UsernamePassword Token Authentication. </p>
  
  <p>I've trying to connect with WCF client using the following binding with no luck.</p>
  
  <pre><code>&lt;bindings&gt;
    &lt;wsHttpBinding&gt;
      &lt;binding name="OperationsEndpoint1Binding" closeTimeout="00:01:00"
          openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
          allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
          maxBufferPoolSize="524288" maxReceivedMessageSize="1015536"
          messageEncoding="Text" textEncoding="utf-8"
          useDefaultWebProxy="true"&gt;
  
        &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
            maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt;
  
          &lt;security  mode="TransportWithMessageCredential"&gt;
            &lt;transport clientCredentialType="None" proxyCredentialType="None" realm="" /&gt;
            &lt;message clientCredentialType="UserName" algorithmSuite="Default" /&gt;
        &lt;/security&gt;
      &lt;/binding&gt;
    &lt;/wsHttpBinding&gt;
  &lt;/bindings&gt;
  </code></pre>
  
  <p>Does anyone have a solution to connecting to java webservice HTTPS transport and use WS-Security UsernamePassword Token Authentication much appreciated. </p>