• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

axis2 request xml size issue

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Saloon Keeper
Posts: 7585
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic