Hi,
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.
Optionally
specify the Java package name to use for the WSDL
namespace.
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.
Freeman
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:
http://cxf.547215.n5.nabble.com/wsdl2java-JAXB-binding-tp3298341p3298609.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Freeman Fang
------------------------
FuseSource: http://fusesource.com
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org