You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Jervis Liu (JIRA)" <ji...@apache.org> on 2007/02/14 04:08:05 UTC
[jira] Closed: (CXF-249) Performance improvment by using
DOMXMLWriter
[ https://issues.apache.org/jira/browse/CXF-249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jervis Liu closed CXF-249.
--------------------------
> Performance improvment by using DOMXMLWriter
> --------------------------------------------
>
> Key: CXF-249
> URL: https://issues.apache.org/jira/browse/CXF-249
> Project: CXF
> Issue Type: Improvement
> Components: JAX-WS Runtime
> Affects Versions: 2.0-RC
> Reporter: Jervis Liu
> Assigned To: Jervis Liu
> Fix For: 2.0-RC
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.