Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 2534 invoked from network); 19 May 2009 11:44:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 May 2009 11:44:49 -0000 Received: (qmail 75139 invoked by uid 500); 19 May 2009 11:44:48 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 75025 invoked by uid 500); 19 May 2009 11:44:48 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 75016 invoked by uid 99); 19 May 2009 11:44:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 May 2009 11:44:48 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of andreas.veithen@gmail.com designates 74.125.78.149 as permitted sender) Received: from [74.125.78.149] (HELO ey-out-1920.google.com) (74.125.78.149) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 May 2009 11:44:36 +0000 Received: by ey-out-1920.google.com with SMTP id 13so1123711eye.28 for ; Tue, 19 May 2009 04:44:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=dA928a0xa20ViOf7gri+1MremVoQSMYbTJ10DgHssmw=; b=T9frrWsowW3GjNDx3JPeERQ2zP0WlBOeR9m2/AZl2KIn6zIMzBKL34gMV/26hYQeZ2 LA/jiXR+8X8tY+aXEwvOK/ILSmoPNNiVGfYX9vFUk76EBSnmaNKcY242ILS6YgHSNmTM 9rE8bvAmeVL0AJHFP4Ylx+WaK9RfrKl+B/ktY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=l0R2NStFbfnAeLLzl7AxjpY1ZT2TJGqDflonkGrrzsIcCH++hnjzNOsxHzo7E0BqrX N40ACPtmii+a+wNN9n7Pbcrp53q32+MhiJqdSuOKyucvyJFskrpFG3kQPG3ardQEaGUI UnVmDDIcWC4DnCNC6JHm+UniDmqzuwOKwIgCw= MIME-Version: 1.0 Received: by 10.216.48.1 with SMTP id u1mr2368497web.189.1242733455685; Tue, 19 May 2009 04:44:15 -0700 (PDT) In-Reply-To: <7cc2ad20905190436j5cc6ab93gdfb01fd382f88b1c@mail.gmail.com> References: <7cc2ad20905190348m7357f6f9q6c21e8576c6af6e7@mail.gmail.com> <7cc2ad20905190355y49b39828w86c48a898e0a7a9b@mail.gmail.com> <7cc2ad20905190436j5cc6ab93gdfb01fd382f88b1c@mail.gmail.com> Date: Tue, 19 May 2009 13:44:15 +0200 Message-ID: Subject: Re: Regarding MTOM response. From: Andreas Veithen To: axis-dev@ws.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I don't know exactly in which version this method has been deprecated. In recent Axiom versions, there is another complete method that takes a byte[] instead of a StringWriter. The issue with the old method is that is uses the DataHandler(Object, String) constructor, but there is no data content handler registered for text/xml. The new method correctly uses the DataHandler(DataSource) constructor. Andreas On Tue, May 19, 2009 at 13:36, Binod Garg wrote: > Hi Andreas, > I have gone through the code and found this method. This method is > deprecated in which version and if it is deprecated which method is used? > > On Tue, May 19, 2009 at 4:56 PM, Andreas Veithen > wrote: >> >> Binod, >> >> This method is deprecated and you should not use it. >> >> Andreas >> >> On Tue, May 19, 2009 at 12:55, Binod Garg wrote: >> > >> > >> > ---------- Forwarded message ---------- >> > From: Binod Garg >> > Date: Tue, May 19, 2009 at 4:18 PM >> > Subject: Regarding MTOM response. >> > To: axis-dev@ws.apache.org >> > >> > >> > We have a scenario where we are trying to reuse the axis2 code to crea= te >> > an >> > MTOM response. We have the soap envelope and the linked list which >> > contains >> > the attachment . We are using the Class MIMEOutputUtils. >> > complete(OutputStream outStream, >> > >> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0 StringWriter writer, LinkedList >> > binaryNodeList, >> > >> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0 String boundary, String contentId, >> > String >> > charSetEncoding, >> > >> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0 String SOAPContentType) method to write >> > the >> > MTOm response to the outputstream. We have the following soap body =A0= as >> > String >> > >> > >> > >> > >> > >> > > > >> > xmlns:SOAP-ENV=3D"http://schemas.xmlsoap.org/soap/envelope/" >> > >> > xmlns:SOAP-ENC=3D"http://schemas.xmlsoap.org/soap/encoding/" >> > >> > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" >> > >> > xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema"> >> > >> > >> > >> > > > xmlns:ns=3D"urn:PegaRULES:SOAP:TestEchoActivityPKG:Services" >> > >> > SOAP-ENV:encodingStyle=3D"http://schemas.xmlsoap.org/soap/encoding/"><= /ns:TestEchoActivityResponse> >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > I want to use this as the soap envelope . However it is giving an >> > exception >> > javax.activation.UnsupportedDataTypeException: no object DCH for MIME >> > type >> > text/xml; charset=3DUTF-8 while writing the soap envelope body part to= the >> > outputstream. Please let me know if I am missing anything? >> > >> > >> > >> > Thanks, >> > >> > Binod >> > > >