[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


 Description   

Hello,

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.



 Comments   
Comment by Arjen Poutsma [ 18/Mar/14 ]

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

Generated at Sun Dec 17 04:05:36 UTC 2017 using JIRA 6.4.14#64029-sha1:ae256fe0fbb912241490ff1cecfb323ea0905ca5.