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
java soap xml jax-ws


source to share


No one has answered this question yet

Check out similar questions:

4353
How do I pass "Null" (real last name!) To a SOAP web service in ActionScript 3?
797
What characters do I need to hide in XML documents?
434
How can I remove the last character from a string?
374
Remove last character of StringBuilder?
160
Tracking XML Request / Responses with JAX-WS
2
Removing invalid characters from Soap response in JAX-WS
1
XML parsing error (SOAP): Invalid character
1
Java-WS XML serialization failed before JAXB demagnetization occurred
0
JAX-WS - Soap request null
0
How to configure Spring / Woodstox jaxws to extract CTRL-CHAR from SOA proxy service response



All Articles
Loading...
X
Show
Funny
Dev
Pics