[SWS-778] Call a new method of ClientInterceptor when sending the message failed Created: 05/Jun/12  Updated: 18/Mar/14  Resolved: 18/Mar/14

Status: Resolved
Project: Spring Web Services
Component/s: Core
Affects Version/s: None
Fix Version/s: 2.2.RC1

Type: New Feature Priority: Minor
Reporter: Pierre Le Roux Assignee: Arjen Poutsma
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified



ClientInterceptor handleResponse or handleFault aren't called when the process send a message to a remote server and this server doesn't answer (404...).
It's normal because no soap response message has been sent.
It could be interesting to have another function, for example : handleException or handleError in order to get the deal the request status when server doesn't answer a compliant message.

I know there are ExceptionResolver and I'm already using it but i need such a method for doing the process below :

  • In my ClientInterceptor, I track sent message and current time in handleRequest
  • I'm already tracking soap response and current time at response
  • I can't track response time and http status (or JMS...) when connexion fails...

If needed, I can add my class which is in an opensource project.

Comment by Arjen Poutsma [ 18/Mar/14 ]

Fixed by adding an afterComplete callback to ClientInterceptor, similar to the existing one in EndpointInterceptor.

Generated at Tue Oct 23 10:34:09 UTC 2018 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.