cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin" <>
Subject Re: MIME support in XML binding
Date Mon, 22 Jan 2007 18:10:48 GMT

Thanks for a hint. So I've added an AttachmentInInterceptor to the list of in-interceptors
in the XMLBindingFactory. 
As far as I can see after looking through the code the side-effect of this addition is that
an implementation of org.apache.cxf.message.Message will have a Collection<Attachment>
set on it by the AttachmentDeserializer. 

Now the next problem to solve is how to make this collection visible to Provider<Source>
implementations as they only see a I can see,
and it's there where a MessageContext is created, in createWebServiceContext(Exchange exchange).

So in this method I've just added


so that the incoming attachments if any can be visible to Provider impls.

I reckon that's all I need. Any comments/corrections would be appreciated...

Thanks, Sergey

----- Original Message ----- 
From: "Dan Diephouse" <>
To: <>
Sent: Friday, January 12, 2007 8:47 PM
Subject: Re: MIME support in XML binding

> It shouldn't be too hard to support MIME with the XML binding. I added in
> the attachment interceptors to the HTTP binding so I've already gotten MIME
> over HTTP with no SOAP working. I think the main thing it requires is adding
> the interceptors to the XMLBindingFactory.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message