Ask the Expert

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!

    Requires Free Membership to View

You want to implement a JAX-RPC Handler (a SOAP interceptor) rather than a servlet filter. See

This was first published in December 2003

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: