Hi Ron,
What the
org.apache.servicemix.cxfse.interceptors.AttachmentInInterceptor
actually do is extract attachments list from the JBI message and then
put them into cxf message, so here the attachment list should be already
in the JBI message.
You mean you want the Base64Binary in your JBI message get changed into
attachments by cxf se? Since mtom cxf support is soap message oriented
so I'm afraid we can't do it .
Freeman
Ron Gavlin wrote:
FYI, in my previous message, I was referring to class
"org.apache.servicemix.cxfse.interceptors.AttachmentInInterceptor" which gets added in
the CxfSeEndpoint.validate() method. Shouldn't there also be a
"org.apache.servicemix.cxfse.interceptors.AttachmentOutInterceptor" class which should
get added here as well if mtom is enabled? Or am I missing something?
- Ron
----- Original Message ----
From: Freeman Fang <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, April 29, 2008 11:16:17 PM
Subject: Re: CXF-SE Support for outgoing attachments
Hi Ron,
For outgoing attachments, we reuse the AttachemntOutInterceptor from
CXF, you can see the code piece in the CxfBcProvider
if (isMtomEnabled()) {
outList.add(new JbiOutInterceptor());
outList.add(new MtomCheckInterceptor(true));
outList.add(new AttachmentOutInterceptor());
}
If possible, would you please append your test case, which is easy for
me to reproduce the problem.
Thanks
Freeman
Ron Gavlin wrote:
Greetings,
In SM-1109, I see that inbound attachment support was added to CXF-SE via the
AttachmentInInterceptor.java class. However, I do not see a corresponding
interceptor for handling outgoing attachments. Also, in my testing, I am not
seeing JBI attachments created for my outgoing base64 binaries. Is this a bug?
- Ron