As an alternative, instead of putting request/response details into the soap context, (in my case it did not work), you can put it into the ThreadLocal. So you need SOAPHandler, that @gavenkoa described (ty), but add it to the ThreadLocal instance, instead of the soap context.