Handling compressed SOAP requests
I need to handle a compressed SOAP request (i.e., body of HTTP message is gzip compressed) and return a compressed SOAP response in a Web service (i.e. body of HTTP response must be gzip compressed) running under WLS 8.1. I suspect the "right" way to do this is with a servlet filter, but I'll be darned if I can figure out how to implement a servlet filter with a Web service. In an answer to a question posed on 16-June-2003, you state, "I suspect that you'd like to implement your intermediary as a servlet filter. You must intercept the call between the point that the servlet engine receives the HTTP call and before it routes it to the SOAP message handler. Once your servlet filter has finished processing the header, the servlet engine will route the call to the SOAP message handler." My question is: how do you do this, specifically using WLS? Thank you very much for any insight you can provide!
You want to implement a JAX-RPC Handler (a SOAP interceptor) rather than a
servlet filter. See http://e-docs.bea.com/wls/docs81/webserv/interceptors.html
This was first published in December 2003