SoapJaxbDataFormat extends the JaxbDataFormat which has the setSchema method, 
you should be able to set the schema as you just did.


--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On May 19, 2014 at 10:33:26 PM, james555 (luke...@gmx.net) wrote:
> Hello,
>  
> is there an appropriate way to unmarshal soap-xml with jaxb using
> SoapJaxbDataFormat including xsd schema validation (camel 2.13.0) ?
>  
> e.g.
>  
> ...
> SoapJaxbDataFormat soapJaxbDataFormat = new SoapJaxbDataFormat();
> soapJaxbDataFormat.setContextPath("foo.bar.jaxb");
> soapJaxbDataFormat.setEncoding("UTF-8");
> soapJaxbDataFormat.setSchema("classpath:person.xsd");
> ...
>  
> since there is no setSchema-Method on SoapJaxbDataFormat to activate schema
> validation ? (I don't want to use cxf)
>  
> Am I missing something ?
>  
>  
> james
>  
>  
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/JAXB-Unmarshalling-of-soap-xml-including-schema-validation-tp5751290.html
>   
> Sent from the Camel - Users mailing list archive at Nabble.com.
>  

Reply via email to