I'm trying to create an Interceptor that does some custom authentication by
reading credentials from the SOAP body. I want to avoid using SAAJ for
performance reasons since my payload may be rather large. I figured it makes
sense to use STaX to read only the content I need...The problem is, I can't
figure out how to use STaX in an Interceptor without disturbing other
Interceptors. I tried adding an Interceptor in the POST_PROTOCOL phase that
uses the XMLStreamReader from message.getContent(XMLStreamReader.class).
However, it I call next() on it, an Interceptor further down the chain
throws an error. Then I tried creating a new XMLStreamReader using the
InputStream from message.getContent(InputStream.class), but this stream is
already at EOF since a previous Interceptor already read it. 

Any suggestions on how I can create or access an existing XMLStreamReader in
my Interceptor without impacting other Interceptors? 

Thanks!
-- 
View this message in context: 
http://www.nabble.com/Creating-STaX-Interceptor-tp19114267p19114267.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to