aspose file tools*
The moose likes Web Services and the fly likes axis2 request xml size issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "axis2 request xml size issue" Watch "axis2 request xml size issue" New topic
Author

axis2 request xml size issue

sandeepkum kumar
Greenhorn

Joined: Oct 11, 2011
Posts: 3
Hi All,


I am consuming web service using axis2 java.

I am sending image in base64 binary format in request xml , So length of request xml getting too large(200000 characters )
when my request xml length is more than 14994 characters.
it gives FaultDetailMessage: FaultDetailMessage .

web service working fine if request length is less than 14994 characters.
Is thre any size limit in axis2 or http protocol or java server.

Please reply soon , its urgent.

William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
Is this a service you wrote?

If not - probably the author included a size limit as a safety precaution.

If yes, consider passing bulky binary data as an attachment - search for SAAJ - bulk data does NOT belong inside a SOAP request, it just burdens the parser and slows things down.

If you do not need all the WS-* bells and whistles, consider switching to a RESTful architecture where your image submission would be a simple POST or PUT.

Bill
sandeepkum kumar
Greenhorn

Joined: Oct 11, 2011
Posts: 3
Hi Bill,

Thanks for your reply.

Web service is written by someone else in Progress language.
I am consuming this web service using Axis2 in java.

Right now i could not learn SAAJ and REST architecture .
So can you please tell me that size limit that yo mention is on web service server side(Progress).
Or it is defined at client side (Axis2).

If it is defined at client side then how can i increese this size limit in Axis2.

Please reply soon , its very urgent.

Regards,
Sandeep
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
William Brogden wrote:If not - probably the author included a size limit as a safety precaution.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
To further elaborate on safety:

One of the ways to attack a web site / web service is to submit impossibly large /and-or/ badly formatted requests. XML based services are particularly vulnerable since the service will try to parse the input, possibly running out of memory and certainly using CPU.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: axis2 request xml size issue