Hope you would find the following link useful , which talks about the approach 
that Dan mentioned  -
http://cxf.soaweb.co.in/index.php/2010/02/07/creating-cxf-web-services-using-xsd-first-approach/
 
- Naveen

--- On Tue, 4/6/10, Daniel Kulp <[email protected]> wrote:


From: Daniel Kulp <[email protected]>
Subject: Re: Hand-written XSDs with Auto-generated WSDL
To: [email protected]
Cc: "phayte" <[email protected]>
Date: Tuesday, April 6, 2010, 10:49 PM


On Monday 05 April 2010 11:59:47 am phayte wrote:
> I have request / response XSDs that have been written by hand that I would
> like to have included/referenced in an auto-generated WSDL.  I suppose I
> want  a "middle of the road" approach where I'm not doing code first but
> not writing an entire WSDL by hand either.
> 
> I cannot locate an annotation or mapping that allows me to do tie XSDs to
> WSDL generation.  Anyone have any pointers to doing something like this or
> am I taking the wrong angle on this?

USUALLY what is done in this case is to use an XSD -> Java tool (like xjc for 
JAXB) to create the Java objects from the XSD and then use the java classes as 
parameters and stuff like a "java first" case.    Thus, CXF would generate a 
WSDL at runtime on demand, but would match the schema that was generated.  
(there is config that allows exact use of the exact xsd files)


-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog



      

Reply via email to