This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

axis2 request xml size issue

 
sandeepkum kumar
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Pie
Posts: 2495
9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic