cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Diephouse (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CXF-249) Performance improvment by using DOMXMLWriter
Date Tue, 21 Nov 2006 19:49:26 GMT
     [ http://issues.apache.org/jira/browse/CXF-249?page=all ]

Dan Diephouse updated CXF-249:
------------------------------

    Fix Version/s: 2.0-RC
                       (was: 2.0-M2)

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

        

Mime
View raw message