Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-778

Call a new method of ClientInterceptor when sending the message failed

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.RC1
    • Component/s: Core
    • Labels:
      None

      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.

        Activity

        Hide
        arjen.poutsma Arjen Poutsma added a comment -

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

        Show
        arjen.poutsma Arjen Poutsma added a comment - Fixed by adding an afterComplete callback to ClientInterceptor, similar to the existing one in EndpointInterceptor.

          People

          • Assignee:
            arjen.poutsma Arjen Poutsma
            Reporter:
            pilerou Pierre Le Roux
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: