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 >> >> >> >> >> > > > > > >
