Hello Experts,

I have the following Problem:

I create a Soapmessage using java.xml.soap
Now the Webservice changed to accept only gzip Requests.
What is the best way to gzip an existing Soapmessage ?
I tryed
Code:
mheaders.setHeader("SOAPAction", "submit"+this.action);
mheaders.setHeader("Accept-Encoding", "gzip,deflate");  // inbound
mheaders.setHeader("Content-Encoding", "gzip"); // outbound
and
Code:
soapMessage.setProperty(HTTPConstants.MC_GZIP_REQUEST, true);
soapMessage.setProperty(HTTPConstants.COMPRESSION_GZIP, true);
soapMessage.setProperty(HTTPConstants.MC_GZIP_RESPONSE, true);
soapMessage.setProperty(HTTPConstants.MC_ACCEPT_GZIP, true);
soapMessage.setProperty(HTTPConstants.CHUNKED, true);
soapMessage.setProperty(HTTPConstants.HEADER_TRANSFER_ENCODING, true);
a function like:
SOAPMessage getGzipSoapReq(SOAPMessage rawSoapReq){
...some Magic Stuff...
return gzippedSoapMessage
}

Thanks in advance for any kind of Information.