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

WebServiceTemple -> add logRequest method analogue to existing logResponse

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.1.1
    • Fix Version/s: 2.1.2
    • Component/s: Core
    • Labels:
      None

      Description

      Hi!

      I want to log the webservice requests and responses in the application I'm currently working on.
      My approach would be to use AOP and watch the methods you use in your code for logging.
      I found "logResponse(MessageContext messageContext)throws IOException" method in the WebServiceTemplate, for that I could create a pointcut.

      But I would need something for the request logging as well and now the request logging currently located in the method:
      sendRequest(WebServiceConnection connection, WebServiceMessage request) throws IOException
      which is also good, just It would be good to separate the logging part imho.
      So you could add a similar method to logResponse.

      Additional question is that I found that there are so called TracingLogger's creatd with logFactory. Maybe instead of thinking in AOP I could use them with defining my own somehow?

      What do you think?

      THanks!

        Activity

          People

          • Assignee:
            arjen.poutsma Arjen Poutsma
            Reporter:
            talang Tamás Láng
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: