How to set Woodstox output properties ?
Have a plain vanilla JAX-WS RI web service.
Everything text book and everything created via annotations.
I need to have my output (my response) filter out characters that are invalid. As it turns out Woodstox has a way of doing this because you can set at runtime which InvalidCharHandler you wish to use.
There's a posting on the topic here: http://www.cowtowncoder.com/blog/archives/2008/12/entry_106.html
However I have no idea how to do this in the context of a plain vanilla web service created through annotation. For example I don't have an XMLOutputFactory anywhere. In fact the whole marshalling / unmarshalling is all behind-the-scenes from my point of view. Can't even catch if there's an exception in that process.
So how can I set such a Woodstox property ? Seems like a pretty simple thing but I just cannot figure out how to do it.
Hope you can help.