Discussion:
Axis2 - can I obtain the HTTP client?
Sterpu Victor
2016-11-19 20:22:08 UTC
Permalink
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/

Thank you.
Andreas Veithen
2016-11-20 16:03:51 UTC
Permalink
Post by Sterpu Victor
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
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.
Post by Sterpu Victor
Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-***@axis.apache.org
For additional commands, e-mail: java-user-***@axis.apache.org

Loading...