Hi,

On 2010-12-9, at 上午9:20, amer.almani wrote:


Hello,

I have the case where I am building 4 web services. Each service exists in a different project. I am using the wsdl2java maven codegen plugin. I defined my model in a separate jar where i included all my POJOs. I generated my
model using jaxb after defining my schema.
I'm not sure I understand your approach, you're using wsdl first way or code first way?
What "model" here you mean?

Now I am writing my wsdl files and I want to refer to my model in the
schema. For example, I have one web services that returns a Receipt object
as a result of an invocation. The same object is used by the invoking
service to supply as an argument for an invocation of a third web service.

After generating my code using code-gen plugin. I noticed that each web service is creating it is own Receipt class in its webapp. I don't want to
end up with three Receipt classes in three different packages!!
Generally if the namespace of your schema is same, then same class should be generated into same package.

Freeman


How can i write my wsdls, and define their schemas to point to my model?


Amer
--
View this message in context: 
http://cxf.547215.n5.nabble.com/wsdl2java-JAXB-binding-tp3298341p3298341.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

Reply via email to