cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jervis Liu (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CXF-249) Performance improvment by using DOMXMLWriter
Date Wed, 14 Feb 2007 03:08:05 GMT

     [ https://issues.apache.org/jira/browse/CXF-249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jervis Liu resolved CXF-249.
----------------------------

    Resolution: Fixed

> 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.


Mime
View raw message