Catching the SOAP Fault error in custom interceptor (Soap12FaultOutInterceptor)

前端 未结 3 1294
攒了一身酷
攒了一身酷 2021-02-10 09:29

I wrote a custom CXF interceptor to log all the SOAP request and responses into the database and it seems to be working fine with positive test cases and server errors.

3条回答
  •  误落风尘
    2021-02-10 10:09

    To capture faults, you need to register the interceptor as a fault interceptor. For example

    
       
    
    

    See the CXF Configuration page under "Enabling message logging using custom CXF bean elements" for an example using the CXF logging interceptors to capture in/out messages and in/out faults.

提交回复
热议问题