Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 74212 invoked from network); 17 Nov 2006 16:01:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Nov 2006 16:01:15 -0000 Received: (qmail 42402 invoked by uid 500); 17 Nov 2006 16:01:15 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 42320 invoked by uid 500); 17 Nov 2006 16:01:14 -0000 Mailing-List: contact cxf-issues-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-issues@incubator.apache.org Received: (qmail 42096 invoked by uid 99); 17 Nov 2006 16:01:14 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Nov 2006 08:01:13 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Nov 2006 08:00:58 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7C95B714322 for ; Fri, 17 Nov 2006 08:00:38 -0800 (PST) Message-ID: <15816265.1163779238507.JavaMail.jira@brutus> Date: Fri, 17 Nov 2006 08:00:38 -0800 (PST) From: "Jervis Liu (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Updated: (CXF-249) Performance improvment by using DOMXMLWriter In-Reply-To: <15927752.1163731598668.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/CXF-249?page=all ] Jervis Liu updated CXF-249: --------------------------- Component/s: JAX-WS Runtime > Performance improvment by using DOMXMLWriter > -------------------------------------------- > > Key: CXF-249 > URL: http://issues.apache.org/jira/browse/CXF-249 > Project: CXF > Issue Type: Improvement > Components: JAX-WS Runtime > Affects Versions: 2.0-M2 > Reporter: Jervis Liu > Assigned To: Jervis Liu > Fix For: 2.0-M2 > > > When Soap handlers are registered in SOAPHandlerInterceptor, we can do following: > 1. Replace the XMLStreamWriter with DOMXMLWriter > 2. chain.remove(AttachmentOutInterceptor.class.getName()); > chain.remove(SoapOutInterceptor.class.getName()); > This is because attachement and headers are already handled by SAAJ, we do not need these two interceoptors any more. > 3. In SOAPHandlerInterceptor, create SAAJ from DOM. a sudo code looks like below: > Document doc = DOMXMLWriter.getDocument() > SOAPMessage soapMessage = MessageFactory.createMessage() > soapMessage.setHeaders(doc.getHeader()); > soapMessage.addAttachmentPart(attachement); > soapMessage.setSoapBody(doc.getBody()); > 4. write SAAJ to originaloutput stream -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira