cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Diephouse <>
Subject Re: SAAJ Construction Proposal
Date Tue, 26 Sep 2006 15:45:53 GMT
Well the MessageFactory takes an InputStream for construction, so 
underneath it uses SAX. Agreed that SAAJ is mighty unpleasant though.

Dan K pointed out that lazy loading the body may not be possible because 
by proxying the SOAPEnvelope, SAAJBody/SAAJHeader.getParentElement() 
won't return the proxy. So we may just have to construct the SAAJ 
message as a whole and just avoid SAAJ as much as possible. Another 
option would be to use Axiom, however I'm not really keen on adding more 
dependencies and tying ourselves to a specific SAAJ implementation.

- Dan

Hani Suleiman wrote:
> SAAJ is rather unpleasant, and all its elements are in fact DOM 
> elements (they all extend Node), so it doesn't really use SAX.
> On Sep 26, 2006, at 3:49 PM, Dan Diephouse wrote:
>> Dan Diephouse wrote:
>>> I know there was some discussion about implementing SAAJ mode - has 
>>> anyone started on that yet or were we just talkin about it? :-)
>>> Cheers,
>>> - Dan
>> OK, since no one responded, I'd like to suggest that we construct the 
>> SAAJ document from the xmlstreamreader. A couple reasons for this: 
>> First, I think SAAJ uses SAX underneath and Woodstox is way faster 
>> than xerces (median of 2-3x faster from tests I've seen), so we 
>> should get a performance benefit. Second, it'd be easy to lazy load 
>> the Body this way. What do people think?
>> - Dan
>> --Dan Diephouse
>> (616) 971-2053
>> Envoi Solutions LLC

Dan Diephouse
Envoi Solutions

View raw message