title: Mule http request configuration proxy
body: <p>I'm following a tutorial from mulesoft (<a href="https://docs.mulesoft.com/mule-user-guide/v/3.7/dataweave-tutorial" rel="nofollow noreferrer">DataWeave Tutorial</a>) witch implements a Web Service Consumer that calls an external public web service (<a href="http://tshirt-service.cloudhub.io/?wsdl" rel="nofollow noreferrer" title="WSDL">WSDL</a>). I had no problem to setup the project as described, but when I launch my server I have the following error: "Caused by: java.net.ConnectException: Connection refused: connect".</p>
  
  <p>First thought was that the webservice was unavailable. But I tested it in SoapUI and it workded just fine.</p>
  
  <p>I suppose the error is because the call to the web service is not using the proxy configurations that I have set up in Anypoint Studio. So, in my Web Service Consumer I have set up a HTTP Request Configuration where I added a Proxy Configuration. But it also did not work. Those were my steps:</p>
  
  <p>Web Service Consumer</p>
  
  <pre><code>https://i.stack.imgur.com/hN584.png
  </code></pre>
  
  <p>References tab</p>
  
  <pre><code>https://i.stack.imgur.com/NIV84.png
  </code></pre>
  
  <p>HTTP Request Configuration</p>
  
  <pre><code>https://i.stack.imgur.com/Ubpwa.png
  </code></pre>
  
  <p>Proxy tab</p>
  
  <pre><code>https://i.stack.imgur.com/bBYx1.png
  </code></pre>
  
  <p>Proxy Configuration</p>
  
  <pre><code>https://i.stack.imgur.com/JDQdf.png
  </code></pre>
  
  <p>One thing that is immediately noticeable is the the TLS error on the HTTP Request Configuration. This error appears as soon as I choose to use a proxy and when I go to the TLS/SSL tab I have no option to remove the TLS configuration as you can see in the following image:</p>
  
  <p>TLS/SSL tab</p>
  
  <pre><code>https://i.stack.imgur.com/xFqEW.png
  </code></pre>
  
  <p>Here's the XML of my flow:</p>
  
  <pre><code>    &lt;flow name="dataweave_tutorialFlow"&gt;
      &lt;http:listener config-ref="HTTP_Listener_Configuration" path="ex1" doc:name="HTTP" metadata:id="b34a6c34-653f-4b68-8aa3-8292e41a20cf"/&gt;
      &lt;dw:transform-message doc:name="Transform Message"&gt;
          &lt;dw:input-payload doc:sample="C:\temp\dw_example1.json"/&gt;
          &lt;dw:set-payload&gt;&lt;![CDATA[%dw 1.0
          %output application/xml
          %namespace ns0 http://mulesoft.org/tshirt-service
          ---
          {
              ns0#OrderTshirt: {
                  size: "M" unless payload.buyer.state == "TX" otherwise "XXL",
                  email: payload.buyer.email,
                  name: payload.buyer.name,
                  address1: payload.buyer.address,
                  address2: null,
                  city: payload.buyer.city,
                  stateOrProvince: payload.buyer.state,
                  postalCode: payload.buyer.postCode,
                  country: payload.buyer.nationality
              }
          }]]&gt;&lt;/dw:set-payload&gt;
      &lt;/dw:transform-message&gt;
      &lt;ws:consumer config-ref="Web_Service_Tshirt" operation="OrderTshirt" doc:name="Web Service Consumer"/&gt;
  &lt;/flow&gt;
  </code></pre>
  
  <p>I'm using Anypoint Studio 6.2.5 with Mule ESB Server 3.8.2.</p>
  
  <p>I have no more ideas for what to change to make this work. Hope anyone has some good suggestion about this. Thanks in advance!</p>