I'd like to create a soap client where the webserver does not accept GZIP
requests, but can respond with compressed xml responses.
Therefore I set the client policy accordingly. Anyhow, the resulting xml
header does NOT show the "accept-encoding=[gzip]" tag as I would expect.

Accept GZIP:
/               HTTPConduit http = (HTTPConduit)
ClientProxy.getClient(port).getConduit();
                HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
                httpClientPolicy.setAcceptEncoding("gzip");
                http.setClient(httpClientPolicy);/

XML Request:
/Address: ...?wsdl
Encoding: UTF-8
Http-Method: POST
Content-Type: text/xml
Headers: {Accept=[*/*], SOAPAction=[""]}
Payload: <soap:Envelope...&lt;/i>

Why is the accept-encoding still missing?



--
View this message in context: 
http://cxf.547215.n5.nabble.com/How-to-enable-accept-encoding-tp5750980.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to