Am Freitag, den 04.01.2008, 06:04 -0800 schrieb Pierre Buyle:
> Hi,
> 
> In Java, I have several different services interfaces using the same data
> classes with JAXB annotations. Using CXF (2.0.3) and Spring, implementations
> of theses interfaces are exposed as Web Services.
> 
> It works well with one exception: each (generated) WSDL contains it's own
> schema with XSD types for the data classes used by the service's method. If
> two services use the same data classes, the same XSD type is defined in two
> separate WSDLs.
> 
> Is there a way to put shared XSD types in a single XSD (or even WSDL) file
> and to have this file imported in the WSDLs ?

Manually, after generated, of course you can do that.  Automated?  I
would take a look at the "-createxsdimports" option ([1])--that might be
what you're looking for.

HTH,
Glen

[1] http://cwiki.apache.org/CXF20DOC/java-to-wsdl.html

Reply via email to