On Tuesday, July 03, 2012 08:45:01 AM Evangelina wrote: > 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.
Interesting. Might be worth logging a bug for this, but not really sure how to best "fix" it right now. To work around it for you, the easiest is to stick an interceptor in the LOGICAL phase that would grab the interceptor chain and remove the CheckClosingTagsInterceptor. Would avoid your problem entirely. -- Daniel Kulp [email protected] - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com
