CXF outgoing Interceptor get soap response body that is always null?

后端 未结 3 1236
暖寄归人
暖寄归人 2021-01-01 02:09

I write a Interceptor for test. But I get Soap message body in the Interceptor is always null.

My Cxf is Apache-CXF-2.4.0

bean.xml is like this:



        
3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-01 02:41

    The message depends on the phase you are at this moment. You can find a list with phases in Interceptor doku. If you try to get the message content you need to find our in which format the message exists. Have a look in getContentFormats. Some of the objects will not give you the message. The most time CXF works with streams. So the stream object could be flushed.

    With best regards Christian

提交回复
热议问题