Skip to content

omitting namespaces in SOAP responses #104

Answered by pdvrieze
jweick asked this question in Q&A
Discussion options

You must be logged in to vote

The way to solve this is to use a filter (dynamic namespaces are invalid in XML - different from updating the namespace on an update) to filter the XML before feeding it to serialization. To do this you need to implement XmlReader (probably actually a subclass of XmlDelegatingReader) and make it return the "right" values. Then you can use XmlStreaming, PlatformXmlReader or KtXmlReader to create a reader from whatever source is appropriate, and pass it to the filter. The filter can then be passed to the format to parse (rather than a raw string).

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jweick
Comment options

Answer selected by jweick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants