title: Configuring PROXY settings in WSO2 ESB 4.8.1
body: <p>I am new to wso2.. I am facing an issue while calling an EXTERNAl SOAP Service using wso2esb proxy service.. I am using WSO2 ESB inside a corporate proxy.. I can able to call this external soap service directly using an soap client.. </p>
  
  <p>Is there any proxy configuration that I need to set in WSO2 ESB ?</p>
  
  <p>I am getting the following exception while connecting a soap service using wso2proxy service</p>
  
  <p><code>2014-03-18 14:40:52,193 [-] [PassThroughHTTPSender]  WARN ConnectCallback Connection refused or failed for : www.w3schools.com/68.232.44.251:80
  2014-03-18 14:40:52,198 [-] [PassThroughMessageProcessor-3]  WARN EndpointContext Endpoint : AnonymousEndpoint will be marked SUSPENDED as it failed
  2014-03-18 14:40:52,199 [-] [PassThroughMessageProcessor-3]  WARN EndpointContext Suspending endpoint : AnonymousEndpoint - current suspend duration is : 30000ms - Next retry after : Tue Mar 18 14:41:22 IST 2014
  2014-03-18 14:41:51,185 [-] [HTTP-Listener I/O dispatcher-2]  WARN SourceHandler Connection time out after request is read: http-incoming-2
  2014-03-18 14:51:49,691 [-] [PassThroughHTTPSender]  WARN ConnectCallback Connection refused or failed for : www.w3schools.com/68.232.44.251:80
  2014-03-18 14:51:49,693 [-] [PassThroughMessageProcessor-5]  WARN EndpointContext Endpoint : AnonymousEndpoint will be marked SUSPENDED as it failed
  2014-03-18 14:51:49,694 [-] [PassThroughMessageProcessor-5]  WARN EndpointContext Suspending endpoint : AnonymousEndpoint - last suspend duration was : 30000ms and current suspend duration is : 30000ms - Next retry after : Tue Mar 18 14:52:19 IST 2014</code></p>
  
  <p>Can anyone help me on this please.. For more information please have a look into this. (<a href="https://stackoverflow.com/questions/22405391/how-to-send-a-soap-requestxml-to-soap-service-using-wso2-proxy-service">How to send a soap request(xml) to soap service using wso2 proxy service</a>)</p>
  
  <p><strong>Added the Error Screeshot,Please have a look into this</strong></p>
  
  <p><img src="https://i.stack.imgur.com/tuJVL.jpg" alt="While clicking **test** in design view,getting the below exception"></p>
  
  <hr>
  
  <p>Fixed the issue and Below are the final configurations</p>
  
  <hr>
  
  <p>My axis2.xml configuration as Jean Told ( I'm currently testing with NIO, therefore I've removed standard repository/conf/axis2/axis2.xml and renamed repository/conf/axis2/axis2_nhttp.xml to repository/conf/axis2/axis2.xml in my WSO2 ESB v4.8.1 then you edit this new axis2 conf file and search for transportSender name="http" and inside the node transportSender)</p>
  
  <p><strong><code>&lt;transportSender name="http" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSender"&gt;
          &lt;parameter name="non-blocking" locked="false"&gt;true&lt;/parameter&gt;
          &lt;parameter name="http.proxyHost" locked="false"&gt;proxy.abc.com&lt;/parameter&gt;
          &lt;parameter name="http.proxyPort" locked="false"&gt;8080&lt;/parameter&gt;
      &lt;/transportSender&gt;</code></strong></p>
  
  <p>Then My proxy service configuration </p>
  
  <p>********Changed my proxy service Configuration like below answer *****</p>
  
  <pre><code>`&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;proxy xmlns="http://ws.apache.org/ns/synapse"
         name="CelsiusToFahrenheitService"
         transports="https,http"
         statistics="disable"
         trace="disable"
         startOnLoad="true"&gt;
     &lt;target&gt;
        &lt;inSequence&gt;
           &lt;property name="messageType" value="text/xml" scope="axis2"/&gt;
           &lt;property name="Proxy-Authorization"
                     expression="fn:concat('Basic', base64Encode('INDIA\username:pwd'))"
                     scope="transport"/&gt;
           &lt;property name="POST_TO_URI" value="true" scope="axis2"/&gt;
           &lt;property name="DISABLE_CHUNKING" value="true" scope="axis2"/&gt;
           &lt;header name="Action"
                   value="http://www.w3schools.com/webservices/CelsiusToFahrenheit"/&gt;
           &lt;send&gt;
              &lt;endpoint&gt;
                 &lt;address uri="http://www.w3schools.com/webservices/tempconvert.asmx"
                          format="soap11"/&gt;
              &lt;/endpoint&gt;
           &lt;/send&gt;
        &lt;/inSequence&gt;
        &lt;outSequence&gt;
           &lt;property name="messageType" value="text/xml" scope="axis2"/&gt;
           &lt;send/&gt;
        &lt;/outSequence&gt;
     &lt;/target&gt;
     &lt;description/&gt;
  &lt;/proxy&gt;`
  </code></pre>
  
  <p>Then i restarted the ESB ,then went to <code>try this service</code> in wso2 console as well as using Rest Client(Mozilla Firefox Addon),got the resposne successfully</p>
  
  <p><strong>Thanks alot Jean-Michel for helping this task</strong></p>