cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Freeman Fang <>
Subject Re: wsdl2java & JAXB binding
Date Thu, 09 Dec 2010 09:43:00 GMT

If I understand correctly, your different wsdl files share some common  
type declared in the schema, if so, you can extract common types in a  
xsd files with other namespace, and your different wsdls just import  
common used xsd file, or you can put common types in another namespace  
schema embeded into your wsdl, wsdl2java tool has an option which  
allow your specify not generate some code with certain namespace,  
something like

-nexclude <schema-namespace [= java-package-name]>*
                      Specifies a WSDL namespace to exclude when  
generating code.
                      This option can be specified multiple times.  
                      specify the Java package name to use for the WSDL

So the key point here is that put common types in another namespace  
which in turn enable you get the chance that just exclude it when you  
generate code.

Hope this is what you want.


On 2010-12-9, at 下午5:24, amer.almani wrote:

> Hi,
> Am using wsdl first approah. Every webservice exists in a different  
> project.
> My model is collection  of classes that are shared between the  
> services.
> Every webservice will import the model to define its interfaces.
> What I want to do is somehow import my model schema to each wsdl  
> file, and
> avoid having the plugin generate new classes for my model for each  
> service
> package.
> Amer
> -- 
> View this message in context:
> Sent from the cxf-user mailing list archive at

Freeman Fang


Apache Servicemix:
Apache Cxf:
Apache Karaf:
Apache Felix:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message