cancel
Showing results for 
Search instead for 
Did you mean: 

MTOM enabled SOAP Messages and XML Validation

Former Member
0 Kudos

I am trying a simple scenario which uses SOAP Sender with the XML Validation. It works perfect in normal scenarios, but if I enable MTOM in the web services the XML Validation fails with the following error.

cvc-type.3.1.2: Element 'ns1:customBlob' is a simple type, so it must
have no element information item
[children]

As we know,  MTOM sends the SOAP request with multi-part enabled.

Without MTOM enabled:

<ns1:customBlob>   /9j/4AAQSkZJRg..... { Base64 encoded data } .....  <ns1:customBlob>

With MTOM enabled:

<ns2:blobData><inc:Include href="cid:http://www.soapui.org/173867257498062" xmlns:inc="http://www.w3.org/2004/08/xop/include"/></ns2:blobData>

------=_Part_9_14498914.1341768752791

Content-Type: application/octet-stream

Content-Transfer-Encoding: binary

Content-ID: <http://www.soapui.org/173867257498062>

/9j/4AAQSkZJRg..... { Base64 encoded data } .....

Any thoughts?


Accepted Solutions (1)

Accepted Solutions (1)

nageshwar_reddy
Contributor
0 Kudos

Hi Siva,

In the operation mapping, do you have "Read attachments" enabled and "Do not resolve XOP Include" disabled? If you set these options, the attachment will be available during mapping and the element will be resolved back to original data structure. This involves performance overhead and check if you really want to use MTOM when you need to use mapping.

Former Member
0 Kudos

Hi Nagesh,

Thanks for your help. Does it help also when during "XML Validation by Adapter"? As of now my problem is with XML Validation.

Thanks,

Siva

nageshwar_reddy
Contributor
0 Kudos

Siva,

I am not sure on that. You may want to check it out and update the forum. Thanks.

Former Member
0 Kudos

Hi All,

XML Validation (by adapter) is not supported for the MTOM enabled request messages.

Thanks,

Siva

Answers (0)