I'd like to log (and ideally correlate) incoming and outgoing messages with at minimum the following properties: Date/Time Client Address (IP, name optional) Method
I can get this working for incoming messages using the following but for the outgoing message (back to the client), it returns null.
get-property('axis2', 'REMOTE_ADDR')
Incoming
[2016-01-18 13:18:46,339] INFO - LogMediator To: /services/UserService, WSAction: http://tempuri.org/UserService/Login, SOAPAction: http://tempuri.org/UserService/Login, MessageID: urn:uuid:3e4b7f91-cab0-4294-a013-3c837f6695a0, Direction: request, REMOTE_ADDR: = 172.xx.xx.xx
Outgoing
[2016-01-18 13:18:46,505] INFO - LogMediator To: http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: , MessageID: urn:uuid:8de88329-3968-4edc-8617-352fbcb5480b, Direction: response, REMOTE_ADDR: = null
It's also not possible to correlate the incoming and outgoing messages as the MessageId changes (I guess predictably). Would it be necessary to set a custom property on the inbound side to correlate this?