Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 91573 invoked from network); 3 Jun 2005 23:33:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Jun 2005 23:33:02 -0000 Received: (qmail 90721 invoked by uid 500); 3 Jun 2005 23:32:54 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 90613 invoked by uid 500); 3 Jun 2005 23:32:54 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 90550 invoked by uid 99); 3 Jun 2005 23:32:53 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of sebastien.arbogast@gmail.com designates 64.233.162.202 as permitted sender) Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.202) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 03 Jun 2005 16:32:52 -0700 Received: by zproxy.gmail.com with SMTP id 12so1288128nzp for ; Fri, 03 Jun 2005 16:32:49 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hoN4yPNNvKXu5pjozsOc3fEOwwdA5dsVKPW7aLgOhrKWSaN2HiGKjTY7hRNX0lVGB1FHq7hrbpMi9v+82paAl0QZ2NyPhXe769MQfAre1WhAGKxgdRuDkdLLppF02zlnABFcCMY1Q7TeQLT/JWKT0AQD7tPbmAriZaqg9oRDL0Q= Received: by 10.36.154.18 with SMTP id b18mr1630254nze; Fri, 03 Jun 2005 16:32:49 -0700 (PDT) Received: by 10.36.20.7 with HTTP; Fri, 3 Jun 2005 16:32:49 -0700 (PDT) Message-ID: Date: Fri, 3 Jun 2005 18:32:49 -0500 From: Sebastien Arbogast Reply-To: Sebastien Arbogast To: dev@cocoon.apache.org, Cocoon users list Subject: Re: Cocoon and Axis In-Reply-To: <19e0530f05060315354b209055@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <19e0530f05060310197dba3f9a@mail.gmail.com> <19e0530f05060311152392faa4@mail.gmail.com> <19e0530f05060315354b209055@mail.gmail.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 2005/6/3, Davanum Srinivas : > can u get cocoon.response's outputstream and use the messages > writeTo method? Technically yes I can do something like that : cocoon.response.setContentType("text/xml"); var os =3D cocoon.response.getOutputStream(); os.println(answerContent.toString()); But I keep getting this exception: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response? It seems a bit rough to me : we don't do everything that the XML serializer does. And what if I want to apply a transformation to my document before I send it, like some i18n transformation for example. There should be a simple solution to do that sort of thing... maybe a suggestion for a method to add to the cocoon object hmmm ? BTW I had completely forgotten I could access HttpServletRequest and HttpServletResponse from flowscript using the cocoon object. Maybe it would be enough to rebuild the MessageContext object and forward it to some Axis handlers... WDYT ? -- Sebastien ARBOGAST