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

WebServiceTemple -> add logRequest method analogue to existing logResponse


    • 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:



      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?



        talang Tamás Láng created issue -
        arjen.poutsma Arjen Poutsma made changes -
        Field Original Value New Value
        Assignee Arjen Poutsma [ arjen.poutsma ]
        arjen.poutsma Arjen Poutsma made changes -
        Fix Version/s 2.1.2 [ 13606 ]
        arjen.poutsma Arjen Poutsma made changes -
        Resolution Won't Fix [ 2 ]
        Status Open [ 1 ] Resolved [ 5 ]


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


            • Created: