On Wednesday 12 March 2008, Irshad Buchh wrote:
> Hi,
>
> We have used Apche CXF to deploy a webservice in one of our projects.
> It works like a charm with Spring. Now on the client side, we used
> WSDL2JAVA to create JAXB based proxy classes/stubs and we use
> JaxWSProxyFactoryBean to consume the webservice using Spring. It works
> ok as well. Do we need to provide  JaxWSProxyFactoryBean class with
> all the JAXB created stub client classes or just the service
> interface?

In MOST cases, you just need the service interface.   

The exception will be if you have types that extend other types 
(subclasses) and only use the parent types in the interface.  In some 
cases, the sub types won't be picked up (since nothing points at them) 
and they won't work.   

With 2.1, it's a bit better as the code generators add @XmlSeeAlso 
annotations on things to get the subclasses picked up.  2.0 doesn't have 
that annotation so you kind of need to do it yourself.


-- 
J. Daniel Kulp
Principal Engineer, IONA
[EMAIL PROTECTED]
http://www.dankulp.com/blog

Reply via email to