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
andCode:mheaders.setHeader("SOAPAction", "submit"+this.action); mheaders.setHeader("Accept-Encoding", "gzip,deflate"); // inbound mheaders.setHeader("Content-Encoding", "gzip"); // outbound
a function like: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);
SOAPMessage getGzipSoapReq(SOAPMessage rawSoapReq){
...some Magic Stuff...
return gzippedSoapMessage
}
Thanks in advance for any kind of Information.





Reply With Quote
