JAX-WS: Remove incoming illegal null characters in XML SOAP & # x0;

Environment: * JAX WS 2.2.8 * Standalone publishing with endpoint

Problem: * External, non modifiable system send incoming requests with NULL (0x0) values ​​() * jax-ws fails because XML token does not allow NULL

javax.xml.bind.UnmarshalException with associated exception: [com.ctc.wstx.exc.WstxParsingException: Invalid symbolic link: Null character not allowed in XML content.

  • Tried LogicalHandler and SOAPHandler but buth crash after i try to access the message

Possible solution: * Need a way to access the message at the character level, so I can remove the illegal characters and pass it forward.

Any ideas? Snippets of code?

early

+3


source to share





All Articles