on 07-08-2012 7:42 PM
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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.