[ 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