On Tuesday 15 March 2011 8:27:40 AM Raj Floyd wrote:
> Hi,
> 
> When I use wsdl2java with either client or server option, it generates
> ObjectFactory class, 

JAXB itself uses that.  In cases where there are xsd:any and similar or places 
where a JAXBElement is needed, it checks the ObjectFactory for the right 
methods for dealing with the actual elements.

> XX and XXResponse classes. Why are these classes
> generated and where it could be useful?

When available, they are used at runtime.  The parameters (and returns) are 
wrappered with these objects and fed into JAXB as one whole unit instead of 
for each param.

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

Reply via email to