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.

Thanks
Niraj

 



--
View this message in context: 
http://cxf.547215.n5.nabble.com/schema-validation-issue-with-MTOM-tp5713687.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to