On Sat, Nov 19, 2016 at 8:22 PM, Sterpu Victor <vic...@caido.ro> wrote:
> I use a Axis client on a non Axis server.
> I need to overide(on clietnside) the Content-Encoding received in the HTTP
> header from the server because the server sends an invalid Content-Encoding.
> Can I  obtain the HTTP client from the stub class? I want to try to rewrite
> the header before it gets processed as described here:
> https://adamscheller.com/java/httpexception-unsupported-content-coding-none-solution/

Note that this is for httpclient4, but the stacktrace you posted
earlier shows that you are using the httpclient3 based transport
(which is the default in Axis2 1.7.x). You will first need to switch
to the httpclient4 based transport.

I think you can inject an HTTPClient instance into the message
context. Probably the best is to look at the source code of the
httpclient4 transport.

>
> Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to