Return-Path: Delivered-To: apmail-incubator-cxf-dev-archive@locus.apache.org Received: (qmail 50650 invoked from network); 22 Jan 2007 18:09:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Jan 2007 18:09:36 -0000 Received: (qmail 17732 invoked by uid 500); 22 Jan 2007 18:09:42 -0000 Delivered-To: apmail-incubator-cxf-dev-archive@incubator.apache.org Received: (qmail 17689 invoked by uid 500); 22 Jan 2007 18:09:42 -0000 Mailing-List: contact cxf-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-dev@incubator.apache.org Received: (qmail 17680 invoked by uid 99); 22 Jan 2007 18:09:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jan 2007 10:09:42 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of Sergey.Beryozkin@iona.com designates 62.221.12.33 as permitted sender) Received: from [62.221.12.33] (HELO emea-smg1.iona.com) (62.221.12.33) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jan 2007 10:09:33 -0800 Received: from emea-ems1.ionaglobal.com (dutec.ie [10.2.1.125]) by emea-smg1.iona.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id l0MJ72Cg000272 for ; Mon, 22 Jan 2007 19:07:02 GMT Received: from sberyoz ([10.2.1.195]) by emea-ems1.ionaglobal.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 22 Jan 2007 18:09:10 +0000 Message-ID: <002401c73e50$a4ff2980$c301020a@sberyoz> From: "Sergey Beryozkin" To: References: <7b774c950701100716u3848f6ckf5142230face2ea8@mail.gmail.com> <008301c734d1$90cc3620$3901020a@sberyoz> <7b774c950701121247q719e86e3m2410854713b168e5@mail.gmail.com> Subject: Re: MIME support in XML binding Date: Mon, 22 Jan 2007 18:10:48 -0000 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0021_01C73E50.A4F58C90" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-OriginalArrivalTime: 22 Jan 2007 18:09:11.0011 (UTC) FILETIME=[6A99AB30:01C73E50] X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_0021_01C73E50.A4F58C90 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Thanks for a hint. So I've added an AttachmentInInterceptor to the list = of in-interceptors in the XMLBindingFactory.=20 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 set on = it by the AttachmentDeserializer.=20 Now the next problem to solve is how to make this collection visible to = Provider implementations as they only see a = javax.xml.ws.handler.MessageContext. I can see = org.apache.cxf.jaxws.support.ContextPropertiesMapping, and it's there = where a MessageContext is created, in createWebServiceContext(Exchange = exchange).=20 So in this method I've just added ctx.put(MessageContext.INBOUND_MESSAGE_ATTACHMENTS, exchange.getInMessage().getAttachments()); 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 -----=20 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. >=20 ------=_NextPart_000_0021_01C73E50.A4F58C90--