Can I configure cxf to use specific XML parsing?

Is there a way to specify which cxf XML parser is using? Or through the cfx.xml file or programmatically?

Our application has a Woodstox parser in its class, and cxf seems to use it by default. However, the Woodstox implementation seems to truncate large bytes with basic encoding in the SOAP package.

Removing Woodstox from the class path eliminates this truncation problem, but now it is not an option, as other parts of our application also depend on Woodstox.

It would be ideal if I could just tell cxf to use a different XML parser. Is it possible?

+3
source share
1 answer

Try setting the following system property:

javax.xml.stream.XMLInputFactory=com.sun.xml.internal.stream.XMLInputFactoryImpl

For more information on setting up XMLInputFactory, see XMLInputFactory # newInstance () .

+3
source

Source: https://habr.com/ru/post/1731574/


All Articles