On Sep 7, 2012, at 12:47 AM, niraj_nath <[email protected]> wrote:

> Hi All,
>  I've a JAXWS source based provider  which looks like -
> 
> 
> public class BatchReceiverService implements Provider<SAXSource> 
> {     
>       @Resource 
>       WebServiceContext context;
> 
> It is MTOM enabled. The problem is that when I turn ON the schema
> validation, cxf throws schema validation error as one of the field has the
> XOP tag included(as child alement) to support attachment transfer via MTOM.
> 
> The element looks like -
> <xsd:element name="BatchFile" type="xsd:base64Binary"  minOccurs="1"
> maxOccurs="1" 
> 
> xmime:expectedContentTypes="application/octet-stream"
> 
> xmlns:xmime="http://www.w3.org/2005/05/xmlmime"; />
> 
> I saw some posts similar to this but almost all of them were using JAXB. 
> Do we have any standard solution/suggested approach in this case ?
> I'm using the CXF version (2.2.12) which comes with JBOSS SOA-P 5.2.
> 
> Any help is highly appreciated.

Well, the "standard solution" would be to upgrade to newer versions of the CXF 
related stuff.   This is something that has been "fixed" (more like hacked 
around due to limitations in how JAXB uses the schema validator) for a fairly 
long time.  


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

Reply via email to