I'm writing a class that will be called via SOAP by a vendor of ours. Using Spring, I was able to get the WebApplicationContext from the HttpServletRequest in my test servlet. However, when my component is called by our vendor, it will be a SOAP call (not servlet). How can I determine the context without using a servlet, and without using HttpServletRequest? Or, can I use HttpServletRequest in classes that do not behave as servlets?