title: .net web service as a client of java web service
body: <p>I have a .net 4.0 web app which needs to connect to a customer's web service, written in Java (it has cxf in the service endpoint)</p>
  
  <p>Their service endpoint is https, and ultimately I will need to supply an x509 credential, but not yet.
  They do not allow discovery, they dont expose a mex endpoint, they have supplied us with a wsdl and xsds, and I've managed to create a client proxy. </p>
  
  <p>I'm struggling to set the right wcf client configuration. What I have so far is this: (names changed for obvious reasons).</p>
  
  <pre><code>  &lt;system.serviceModel&gt;
      &lt;bindings&gt;
        &lt;basicHttpsBinding&gt;
          &lt;binding name="CUSwsBinding"  /&gt;
        &lt;/basicHttpsBinding&gt;
      &lt;/bindings&gt;
      &lt;client&gt;
        &lt;endpoint address="https://customer.com/cxf/customerMaintenance/"
          binding="basicHttpsBinding" bindingConfiguration="CUSwsBinding"
          contract="CUSCustomer.Customerxxx" name="CUSCustomerWS" /&gt;
      &lt;/client&gt;
    &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>When I try and execute, it says the basicHttpBinding extension is not recognised. I see there are some bindings that only are supported in .net 4.5, however my manager has Fear, Uncertainty and Doubt, and our web app has to stay on 4.0
  Not an expert in WCF, so any help welcome.</p>
  
  <p>As someone suggested, one can create an instance of the proxy class:</p>
  
  <pre><code>var client = new proxy.ClientClass(); 
  </code></pre>
  
  <p>At this line it throws a Configuration binding extension 'system.serviceModel/bindings/basicHttpsBinding' could not be found.
  The endpointaddress needs to be in config, as its currently pointing at a test environment, will be poiting at production</p>