title: Sending WCF requests through ProxyServer
body: <p>here is my client side WCF Config file :</p>
  
  <pre><code>&lt;configuration&gt;
  
    &lt;system.net&gt;
      &lt;defaultProxy 
        enabled="true" 
        useDefaultCredentials="true"&gt;
  
        &lt;proxy 
          usesystemdefault="False" 
          bypassonlocal="False" 
          proxyaddress="http://172.20.20.254:8088/"
        /&gt;
  
      &lt;/defaultProxy&gt;
    &lt;/system.net&gt;
  
  &lt;system.serviceModel&gt;
    &lt;client&gt;
      &lt;endpoint
        address="http://172.20.20.100:8080/Demo/text"
        binding="customBinding"
        bindingConfiguration="text"
        contract="DemoService.IDemoService"
        behaviorConfiguration="largeObjectGraph_behaviorConfig"
        name="text" /&gt;
    &lt;/client&gt;
  
    &lt;!-- Allow To Desrialize Larg Data --&gt;
    &lt;behaviors&gt;
      &lt;endpointBehaviors&gt;
        &lt;behavior name="largeObjectGraph_behaviorConfig"&gt;
          &lt;dataContractSerializer maxItemsInObjectGraph="2147483646"/&gt;
        &lt;/behavior&gt;
      &lt;/endpointBehaviors&gt;
    &lt;/behaviors&gt;
  
    &lt;bindings&gt;
      &lt;customBinding&gt;
  
        &lt;binding name="text" 
                 closeTimeout="10675199.02:48:05.4775807" 
                 openTimeout="10675199.02:48:05.4775807"
                 receiveTimeout="10675199.02:48:05.4775807" 
                 sendTimeout="10675199.02:48:05.4775807"&gt;
  
          &lt;CustomMessageEncoder 
                MaxArrayLength="1073741824" 
                MaxBytesPerRead="1073741824"
                MaxDepth="1073741824" 
                MaxNameTableCharCount="1073741824" 
                MaxStringContentLength="1073741824" /&gt;
  
          &lt;httpTransport 
            maxBufferPoolSize="1073741824" 
            maxReceivedMessageSize="1073741824"
            maxBufferSize="1073741824" /&gt;
  
        &lt;/binding&gt;
      &lt;/customBinding&gt;
    &lt;/bindings&gt;
  
    &lt;extensions&gt;
      &lt;bindingElementExtensions&gt;
        &lt;add name="CustomMessageEncoder" type="CustomMessageEncoder.CustomMessageEncodingElement, CustomMessageEncoder, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" /&gt;
      &lt;/bindingElementExtensions&gt;
    &lt;/extensions&gt;
  
      &lt;/system.serviceModel&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>using CustomMessageEncoder binding in order to compress and encrypt Messages.</p>
  
  <p>here is problem : we have Proxy-Server[172.20.20.254:8088] in our LAN.</p>
  
  <p>i changed SystemDefaultProxy from ControlPannel it doesn't work !</p>
  
  <p>and use some option in client Config file like u see here and steel doesn't work</p>