On Wednesday, February 08, 2012 5:12:22 PM David Birch wrote:
> Hi,
>      is there any issue with setting the schemas property of the jaxb
> data binding bean manually?
> 
> i.e.
> ....
> <jaxws:dataBinding>
> <bean class="org.apache.cxf.jaxb.JAXBDataBinding">
> <property name="schemas" ref="schemaCol"/>
> </bean>
> ...
> 
> where schemaCol is an instance of Collection<DOMSource> .
> 
> I have a heap of pre-created, hand-coded jaxb beans & schemas, and want
> to use them for both service & client webservice calls, and this was the
> only way i successfully got the schemas validating for the clients, i
> can't see any i'll effects at present. Will this be overriding anything
> otherwise important etc?

Nope.  This is a perfectly fine way to handle it.    

Dan



 
> FYI - not sure if this was the right path, but i tried to get the
> schemas in during the cxf-codegen-plugin so that existing jaxb classes
> could be used & schemas referenced, but didn't get any success with this.
> 
> thanks
> David

> 
-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to