You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Zsolt Kúti <ku...@prolan.hu> on 2014/02/17 11:40:07 UTC

http 413 error when calling a WCF service from Axis client

Hello,

An axis client generated from WCF wsdl produces the error below [1].
Other type of clients has no problem with that operation. 
What configuration should I tweak to avoid this?

Many thanks!

Zsolt


[1]
org.apache.axis2.AxisFault: Transport error: 413 Error: Request Entity
Too Large at
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:310)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:404)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:231)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443) at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at
h.p.k.f.INetService_WCFStub.getLastNTrendData(INetService_WCFStub.java:8077)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Re: http 413 error when calling a WCF service from Axis client

Posted by Zsolt Kúti <ku...@prolan.hu>.
Here are my findings for the archive:

- Scrutiny on the WCF side has shown that the "large" request arrives
  (so IIS passed it along without problem). Http 413 probably is
  reported by IIS when responding.

- When a "small" (successful) request is sent first, the following large
  ones succeed.

This latter can be used as a workaround.

If anyone has an explanation it would be welcome.

Zsolt



On Mon, 17 Feb 2014 11:40:07 +0100
Zsolt Kúti <ku...@prolan.hu> wrote:


>  Hello,

>  An axis client generated from WCF wsdl produces the error below [1].
>  Other type of clients has no problem with that operation. 
>  What configuration should I tweak to avoid this?

>  Many thanks!

>  

>  Zsolt

>  

>  

>  [1]

>  org.apache.axis2.AxisFault: Transport error: 413 Error: Request
> Entity

>  Too Large at

>  org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:310)

>  at

>  org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194)

>  at
> org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)

>  at

>  org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:404)

>  at

>  org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:231)

>  at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443) at

>  org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)

>  at

>  org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)

>  at

>  org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)

>  at

>  h.p.k.f.INetService_WCFStub.getLastNTrendData(INetService_WCFStub.java:8077)

>  

>  ---------------------------------------------------------------------

>  To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org

>  For additional commands, e-mail: java-dev-help@axis.apache.org

>  




---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org