title: wsimport with special character and Xauthfile
body: <p>I'm facing the same problem that this guy here:</p>
  
  <blockquote>
    <p><a href="https://stackoverflow.com/questions/7359877/wsimport-xauthfile-error">wsimport Xauthfile error</a></p>
  </blockquote>
  
  <p>Since he didn't gave a feedback and I'm new here and can't ask him if he solved his problem I'm opening a new question.</p>
  
  <p>I'm using ubuntu and have JDK7 from java oracle installed.</p>
  
  <p>I'm consuming a thirdparty web service. The password (...GT@#ED...) for the webservice have a character that conflicts with de -Xauthfile syntax (http[s]://user:password@host:port//) because of the "@". The dots (...) represents the rest of my password.</p>
  
  <p>Here is the command I'm running:</p>
  
  <pre><code>wsimport -p loa -Xauthfile "path_to_auth.txt" https://myWS?wsdl
  </code></pre>
  
  <p>In my auth.txt file I have:</p>
  
  <pre><code>https://user:...GT@#ED...@myWS?wsdl
  </code></pre>
  
  <p>In return a get</p>
  
  <pre><code>parsing WSDL...    
  [ERROR] Server returned HTTP response code: 401 for URL: https://myWS?wsdl,  
  "https://myWS?wsdl" needs authorization, please provide authorization file with
  read access at /home/user_name/.metro/auth or use -Xauthfile to give the 
  authorization file and on each line provide authorization information using this 
  format : http[s]://user:password@host:port//&lt;url-path&gt;
  </code></pre>
  
  <p>I search all over the net, but no success.</p>
  
  <p>When I try to import the WS using SoapUI like in this <a href="http://blog.lebrijo.com/jax-ws-ws-client-generating-with-soapui/" rel="nofollow noreferrer">tutorial</a> I got a</p>
  
  <pre><code>[ERROR] sun.security.validator.ValidatorException: PKIX path building failed: 
  sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid 
  certification path to requested target
  </code></pre>
  
  <p>and I don't know where to specify the ssl file for SoapUI. I tryed in</p>
  
  <blockquote>
    <p>preferences -> SSL Settings</p>
  </blockquote>
  
  <p>but no lucky.</p>
  
  <p>That's it. I'll apreciate any help.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>OK, so I pass through the authorization, changing the characters using the <a href="http://www.w3schools.com/tags/ref_urlencode.asp" rel="nofollow noreferrer">HTML URL Encoding Reference</a>, but now I'm getting the following error</p>
  
  <pre><code>[ERROR] Server redirected too many  times (20),  "https://ws?wsdl" needs 
  authorization, please provide authorization file with read access at /home/user
  /.metro/auth or use -Xauthfile to give the authorization file and on each line 
  provide authorization information using this format : 
  http[s]://user:password@host:port//&lt;url-path&gt;
  </code></pre>