On Friday 25 June 2010 2:17:43 pm johnpfeifer4 wrote:
> We have deployed CXF throughout our organization with a great degree of
> success.  That being said, we've not done a very good job of versioning any
> of our services.  We've been stuck on version 1.0.0 of all of our services
> (making changes to the xsds and wsdls), forcing our clients to rebuild
> before deploying a new release.  This isn't ideal.
> 
> That being said, I'd like to create a pure POJO service layer that my web
> services delegate to without passing in the JAXB generated Request objects.
> Ideally, I would like my JAXB Request objects to implement an interface
> that my POJO service tier could use.  I was wondering if anyone can point
> me to some good documentation on how to achieve this.

Using interfaces with JAXB can be quite difficult.   For each interface, you 
need to create the concrete implementations (which get output to the WSDL) as 
well as type mappers that would bind the two together.   Then various 
@XmlSeeAlso's and @XmlJavaTypeAdapter things, etc....   

As a starting point, look at the java_first_jaxws sample in the distro.  It 
shows using an interface for an web method.


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

Reply via email to