I' receiving the error: Caused by: org.apache.axis2.AxisFault: HTTP
:unsupported content-encoding of '' found
The SOAP call runs fine on the server, but on the client side this error
appears.
How can I fix this? I could catch this exception and consider that the
call is fine, but can I fix it in
Can you show us the HTTP headers of the response?
Andreas
On Nov 19, 2016 3:45 PM, "Sterpu Victor" wrote:
> I' receiving the error: *Caused by: org.apache.axis2.AxisFault: HTTP
> :unsupported content-encoding of '' found*
> The SOAP call runs fine on the server, but on the client side this erro
Yes, I traced everything with fiddler.
I can now see that "Content-Encoding: " is not defined. If this is the
reason can I safely ignore this error?
This is the raw header:
HTTP/1.1 200 OK
X-Backside-Transport: OK OK
Connection: Keep-Alive
Transfer-Encoding: chunked
Date: Sat, 19 Nov 2016 16:08
According to the HTTP/1.1 specification the Content-Encoding header must
have the following form:
Content-Encoding = "Content-Encoding" ":" 1#content-coding
I.e. an empty value is not allowed, so this is a server side problem.
Andreas
On Nov 19, 2016 4:30 PM, "Sterpu Victor" wrote:
> Yes, I t
I don't control the server, so I need a client side solution.
Could I set a default content encoding if the server is not sending one?
Thank you.
-- Original Message --
From: "Andreas Veithen"
To: "Sterpu Victor"
Cc: "java-user"
Sent: 19/11/2016 7:04:16 PM
Subject: Re: Re[2]: HTTP :un
You could submit a patch to Axis2 to ignore empty Content-Encoding headers.
Andreas
On Sat, Nov 19, 2016 at 5:15 PM, Sterpu Victor wrote:
> I don't control the server, so I need a client side solution.
> Could I set a default content encoding if the server is not sending one?
>
> Thank you.
>
>
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