title: wsimport : unable to rename the package name
body: <p>I've a wsdl at an address like
  <a href="https://mycompany.com/mywspath/Documents.svc?wsdl" rel="nofollow">https://mycompany.com/mywspath/Documents.svc?wsdl</a>
  It seems that xsd is visible at 
  <a href="https://mycompany.com/mywspath/Documents.svc?wsdl&amp;xsd=xsd0" rel="nofollow">https://mycompany.com/mywspath/Documents.svc?wsdl&amp;xsd=xsd0</a></p>
  
  <p>giving a </p>
  
  <pre><code>wsimport https://mycompany.com/mywspath/Documents.svc?wsdl
  </code></pre>
  
  <p>I obtain hierararchy containing the classes related to Documents and the dependencies (com.microsoft,...)</p>
  
  <pre><code>com
  -microsoft
  --...
  -mycompany
  --...
  org
  -datacontract
  --schemas
  ---...
  </code></pre>
  
  <p>My willing is to refactor the generated clasees in com.mycompany.mywspath to com.mycompany.mywspath.test or com.mycompany.mywspathA</p>
  
  <p>This because there are other webservice that contain other definitions in the same namespace so the generated classes are stored in the same package com.mycompany.mywspath and the ObjectFactory.class obtained from the first wsimport is overwritten from the one generated from the following calls.</p>
  
  <p>My willing is to avoid this binding on different packages the namespace coming from different webservices using -b  option of wsimport.</p>
  
  <p>I used a XML binding file like this:</p>
  
  <pre><code> &lt;jxb:bindings 
          jxb:version="2.1"  
          xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"   
          xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
          xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"&gt;
  
          &lt;bindings schemaLocation="https://https://mycompany.com/mywspath/Documents.svc?xsd=xsd0"
                  node="//xsd:schema[@targetNamespace='http://mycompany.com/mywspath']"&gt;
              &lt;jxb:schemaBindings&gt;
                  &lt;jxb:package name="com.mycompany.mywspath"/&gt;
              &lt;/jxb:schemaBindings&gt;
          &lt;/bindings&gt;
  
      &lt;/jxb:bindings&gt;
  </code></pre>
  
  <p>Class are originated in the same place without any modification and com/mycompany/mywspath/test is not originated.</p>
  
  <p>How can I move those classes to com/mycompany/mywspath/test package ?</p>