title: Create a client with Apache cxf, soapUI(or Eclipse) and Fiddler
body: <p>My goal is to create a client to a web service with Apache CXF, located in a host (<a href="https://serverOutOfThisWorld" rel="nofollow">https://serverOutOfThisWorld</a>) that I could only arrive through a putty tunnel. </p>
  
  <pre><code>L8400 -&gt; serverOutOfThisWorld:443
  </code></pre>
  
  <p>I've added in my host the following: </p>
  
  <pre><code> localhost serverOutOfThisWorld
  </code></pre>
  
  <p>So I could put in my browser</p>
  
  <pre><code>https://serverOutOfThisWorld:8400/Bus/SomeWebService?wsdl
  </code></pre>
  
  <p>And now, I can reach to this wsdl from a web browser without problem. But this WSDL has some imports that points out to this web, eg:</p>
  
  <pre><code> &lt;xsd:import namespace="http://inter.es/scsp/esquemas/datos" 
          schemaLocation="https://serverOutOfThisWorld/scehma/data.xml"/&gt;
   &lt;xsd:import ....
  </code></pre>
  
  <p>Therefore, the next step is, with Fiddler, trying to map any invocation to serverOutOfThisWorld:433 to my serverOutOfThisWorld:8400. Ok, I created in the Tools/HOSTS options with this:</p>
  
  <p>serverOutOfThisWorld:8400     serverOutOfThisWorld</p>
  
  <p>And, now, I can navigate to this url in a browser:
  <a href="https://serverOutOfThisWorld/Bus/SomeWebService?wsdl" rel="nofollow">https://serverOutOfThisWorld/Bus/SomeWebService?wsdl</a></p>
  
  <p>And, with the proxy defined in SoapUI to make use of Fiddler, I can create a New->Soap Project based in that URL. </p>
  
  <p>But my problem comes when I try to create a client with SoapUI, and Tools>Apache CFX. It seems that the URLs are not override. In The soapUI log, I see: </p>
  
  <pre><code>Mon Jun 22 14:07:22 CEST 2015:INFO:command: [cmd.exe, /C, wsdl2java.bat, -p, my.packages, -d, C:\eclipsewks\PruebaWS\src, -client, -exsh, false, -dns, true, -dex, true, -verbose, https://serverOutOfThisWorld:443/Bus/SomeWebService?wsdl]
  </code></pre>
  
  <p>It seems that in cmd/wsdl2Java is not using fiddler...</p>
  
  <p>Other option is trying the same with eclipse.. but at last, eclipse also uses wsd2java for creating the client. What can I do? </p>