title: Jax-ws wsgen to generate a wsdl that references to a common schema
body: <p>We're developing a quite big app with couple of dozens of service interfaces. For every service a wsdl is generated using wsgen (using the jaxws-maven-plugin maven plugin). For each service a different namespace is used in the wsdl's.<p>
  The service interfaces sharing a set of common beans (mostly DTOs). As now definitions for these common classes are defined in every wsdl's XSD duplicating a lot information, and this is causing problems for us on the client side (huge compilation times, class incompatibilities).<p>
  First I tried to create a schema for the common classes with schemagen but couldn't pass it to wsgen. Is there a way to pass one (or more) common XSD(s) into wsgen and have the generated wsdl(s) referencing to these?<p>
  I also tried to annotate the common classes with @XmlRootElement specifying a custom namespace: this time wsgen recognized the custom namespace and generated one more XSD for every wsdl but didn't included a single (common) xsd everywhere.<p>
  Could someone point me a solution for this problem?</p>