SoapUI 5.0.0, JRE 1.7.0_40 32 bit Win7 64.
"Expand MTOM Attachments" option doesn't work anymore with CXF 2.6.16 and 2.7.X (works with 2.6.9). The only substantial difference that I see it that with the fresh CXF versions the CID happens to contain characters that will be URL-encoded (%XX
). Like now in the SOAP response we have:
<xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:4448f26f-b153-4fac-9fca-9e368707c34d-4@http%3A%2F%2Fexample.com%2Fkr%2Ffoo%2Fapi%2F1.0"/>
and then the attachment part starts with:
Content-ID: 4448f26f-b153-4fac-9fca-9e368707c34d-1@http://example.com/kr/foo/api/1.0
The two CID-s aren't equal if you don't URL-decode the XOP href before comparison, and apparently do don't. Note that it's NOT a CXF bug, it's a SoapUI bug.
The relevant standards were discussed there:
http://cxf.547215.n5.nabble.com/MTOM-producer-different-content-id-in-XOP-Include-and-MIME-part-for-the-same-attachment-td547750.html
That is, in
WsdlMimeMessageResponse.java
, around line 120, instead of this:you need this:
And maybe also on a few places in
AttachmentUtils.java
, because you also read thexop:Include/@href
attribute there.I have updated to 5.2.0, and this is still not fixed. The same fix applies...