cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Diephouse" <>
Subject Re: Problem in ReadHeadersInterceptor ?
Date Fri, 13 Apr 2007 15:01:16 GMT
If you look closer, you'll see that we actually stop reading the document
when we get to the contents of the body by virtue of PartialXMLStreamReader.
The idea is that we can have a two step process for those times we want to
process the whole document.
1. Start creating a document from the XMLStreamReader, but stop at the first
node in <soap:Body>
2. Continue reading in the body contents in SAAJInInterceptor if we need to

This makes it easy to support WS-Security UsernameToken scenarios without
parsing the whole message into a DOM. We are just create a DOM (starting at
the Envelope) which doesn't have any Body unless we need it to.

Does that make sense?

- Dan

On 4/12/07, Guillaume Nodet <> wrote:
> While stepping in the ReadHeadersInterceptor, I've just seen a recent
> change
> in it:
> The main effect is that the whole message is always transformed to a DOM
> document,
> instead of just the headers element, which seems quite a bad idea imo.
> Any reason for that ?
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Principal Engineer, IONA
> Blog:

Dan Diephouse
Envoi Solutions |

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message