On Monday 04 October 2010 7:13:55 am Krzysztof Raszkowski wrote:
> First of all thanks for a response.
> We have analyzed above approaches, but our problem turned out to be more
> complex. We have to modify value, which is sent by flex client and it's NaN
> for decimal. We want it converted to null (which is not only modifying a
> text context in an xml) and it seems to be impossible in a POST_PROTOCOL
> phase (if we do it for Integer we receive 0 in Java, not null - we have set
> "nillable=true" in our wsdl of course).
> So we want to ask, if there is any way to do it without rewriting the whole
> input as a char array or a stream, because it's not very nice. We cannot
> cope with an advice to put our interceptor after StaxInInterceptor. Of
> course we receive there a message content as XMLStreamReader, but we don't
> know how to modify it in an easy way.
> Any help would be appreciated.

Honestly, another option that may be easiest is to configure in the 
SAAJInInterceptor and write a simple interceptor that would manipulate the 
SAAJ DOM model.   It would incur a slight performance penalty, but really not 
much of one if the messages are relatively small.


-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog

Reply via email to