title: wsimport: multiple wsdl overwrite ObjectFactory
body: <p>I have multiple (let's say 2, A and B) webservices and I need to generate a client to use them togheter.
  In Netbeans I use the wizard "new Web Service Client" passing the two wsdl, looking at the output Netbeans simply call wsimport for each of them.</p>
  
  <pre><code>wsimport http:/mydomain/wsA.svc?wsdl
  wsimport http:/mydomain/wsB.svc?wsdl
  </code></pre>
  
  <p>Both A and B, generate a the same package com.mydomain.myapp (I guess they are defined in the same namespace), so I get the stub class set of A and B merged in the same package.</p>
  
  <p>However, wsimport also creates an ObjectFactory for each webservice so if I generate the stub of B after A I obtain only the ObjectFactory related to B definitions (because the first, A,  is overwritten). Conversely, ObjectFactory of A survives if I switch the order.</p>
  
  <p>The problem is that I need both ObjectFactories in order to create the JAXBElements wrapping clas instances for the types of both webservices A and B.</p>
  
  <p>Is there a way to map the namespace for A in a java package and the B in another one in order to obtain</p>
  
  <pre><code>com.mydomain.myapp.a
  com.mydomain.myapp.b
  </code></pre>
  
  <p>and so keep both ObjectFactories ?</p>
  
  <p>Simple refactoring is not helping because internally a getClass() is called so, once a package has been refactored it does not work anymore.</p>