Hi, 

So I would like to validate the incoming Soap message and preserve the
XmlStreamReader as well. The problem is that if the schema validation is
enabled, the CheckClosingTagsInterceptor is going to consume the message
until the end of the document. Which makes sense since it needs to validate
the entire message.

The reason why I need to preserve the XmlStreamReader is because I want CXF
to act as a proxy, using the Stax databinding. 

I've been trying to somehow back up the xml stream reader before doing the
validation but with no success. I managed to transform it into a Document
and then obtain a WstxDOMWrappingReader but I need it to be the same type
that I had before, which is ValidatingStreamReader. Is there any way in
which I can accomplish this? Or I might trying to do something impossible?

Any hint to the right direction is highly appreciated.  
Thanks, 
Eva

--
View this message in context: 
http://cxf.547215.n5.nabble.com/How-to-preserve-XmlStreamReader-after-validation-tp5710583.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to