I have a JBoss 5.1.1 server which needs to send SOAP messages to an outside party. This party has provided some WSDL files that I have used to generate the WebService code from. This is all working just fine.
However, now I need to enable GZIP support for the SOAP messages. In theory, it's as simple as adding an "Accept-Encoding: gzip, deflate" header to the SOAP requests' HTTP messages. The outside party will then send the response with GZIP encoding. However, I haven't found a way to make JBoss add that header. I'm hoping someone around here can tell me how to do that.