title: WCF custom binding
body: <p>I am using custom binding in the sevrice side in C#. I want binary Encoding in HTTP.</p>
  
  <pre><code>&lt;bindings&gt;
        &lt;customBinding&gt;
          &lt;binding name="myOwnBinding"&gt;
            &lt;binaryMessageEncoding&gt;&lt;/binaryMessageEncoding&gt;
            &lt;httpTransport/&gt;
          &lt;/binding&gt;
        &lt;/customBinding&gt;
         &lt;/bindings&gt;
      &lt;extensions&gt;
        &lt;bindingExtensions&gt;
          &lt;add name="myOwnBinding" type="CustomBinding.UserBinding,CustomBinding"/&gt;
        &lt;/bindingExtensions&gt;
      &lt;/extensions&gt;
  &lt;service name="CustomBinding.Service1" behaviorConfiguration="CustomBinding.Service1Behavior"&gt;
  </code></pre>
  
  <p>This service is not going to expose the metadata.So,i will not be able to create a service Reference in client to consume the servvice.</p>
  
  <p>Now,I want to know how to use this binding in the client channel factory to consume this service.Below is my client side code.</p>
  
  <pre><code>EndpointAddress address = new EndpointAddress("http://localhost:2418/Service1.svc");
              ChannelFactory&lt;IService1&gt; c = new ChannelFactory&lt;IService1&gt;(Binding, address);
              IService1 reqChannel = c.CreateChannel();
              String str = reqChannel.GetData(1);
  </code></pre>
  
  <p>How to manually fill the binding object that the Channel factory is expecting  when service is developed with custom binding.?</p>
  
  <p>Thanks
  Arun</p>