Hi Ron,
Good question, if the incoming soap message is base64binaries, then the
JBI message has base64Binaries as well, if the incoming soap message is
mtom-enabled(I mean has attachment part and has xop href to refer the
attachment in soap body), then it supposed to be transfered as JBI
attachments, the mtom enabling/disabing will not affect the behavior.
Mtom enabling/disabling affect the behavior for outgoing JBI message
with attachments.
Freeman
Ron Gavlin wrote:
Will do.
BTW, do you know how the CXF-BC provider will handle this scenario, whereby the
called external service creates new binaries/DataHandlers? Will the CXF-BC
provider return these as JBI Attachments or will they appear as Base64Binaries
encoded in the message? Will mtom enabling/disabling affect the behavior?
- Ron
----- Original Message ----
From: Freeman Fang <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, April 30, 2008 4:50:19 AM
Subject: Re: CXF-SE Support for outgoing attachments
Sure, please fill a jira on servicemix and I will comment it if I make
any progress.
Thanks
Freeman
Ron Gavlin wrote:
Should I open a JIRA with servicemix-cxf-se or cxf to track this issue or do
you want to take it from here?
- Ron
----- Original Message ----
From: Freeman Fang <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, April 30, 2008 4:29:19 AM
Subject: Re: CXF-SE Support for outgoing attachments
I understand your scenario.
No, simply create AttachmentOutInterceptor in cxf se can't do that, we
may need modify the JBI transport part of cxf code base to make what you
want happen.
I will figure it out later on.
Freeman
Ron Gavlin wrote:
Just to be clear, in my use case, I am attempting to create new DataHandlers in
my CXF-SE service and return the newly created DataHandlers to the caller. It
would seem reasonable for a CXF-SE AttachmentOutInterceptor to convert these
DataHandlers to JBI Attachments. Does that make sense?
- Ron
----- Original Message ----
From: Ron Gavlin <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, April 30, 2008 3:25:57 AM
Subject: Re: CXF-SE Support for outgoing attachments
I would like CXF-SE to convert my outgoing DataHandlers into JBI attachments in the same way it converts my incoming JBI attachments into DataHandlers. This seems symmetrical to me and what would be the expected behavior. Is this a philosophical issue or a technical issue?
How does the CXF-BC Provider handle Base64Binaries returned from an external
service? If mtom is enabled, does it convert these to JBI attachments?
- Ron
----- Original Message ----
From: Freeman Fang <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, April 30, 2008 2:53:36 AM
Subject: Re: CXF-SE Support for outgoing attachments
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