• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Is 5MB of data in SOAP response accetable

 
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am doing a Technical Design for a project, which interacts with webservice to fetch particular set of data. The problem here is that the maximum expected SOAP response size is 5MB. In order to simulate this behaviour, I created a Mock Service to return approx 5MB of data & tested the performance through SOAP-UI. However, to my surprise the SOAP-UI says that the response was 11MB! Just to make sure, I copied the response & saved as XML - validated the size , it was same 5MB. So, I started testing on different clients & I get inconsistent behaviour regarding the data returned and the performance by SOAP-UI. For the same 5MB of actual data, different SOAP-UI instances in different boxes have different response times (from 500ms - 5 sec) & different data size (5MB - 11MB). Thus, I assume that this is something to do with the network & hence the question -
What is the network overhead of sending 5MB of data as part of SOAP response? Will the response time be less than 1sec (assuming standard production app network configuration)?

Any inputs on this will be highly appreciated since its always better to find these gotchas before starting development :-)

Joshua
 
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the network is 10giga bit /sec, that roughly comes to 1gigabyte per second with overhead. So, 5mb should take about 1/200 of a second. IMO, network latency and server response time will be a bigger factor
 
Author and all-around good cowpoke
Posts: 13078
6
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, 5mb inside a SOAP message is not acceptable, the reason being that a SOAP message gets parsed to an XML document - a DOM with an object for every element.

This is mind bogglingly slow plus uses lots of memory.

Large chunks of data should be handled as attachments - handy article in wikipedia on the api.

Bill
 
Ranch Hand
Posts: 199
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
could you use MTOM to optimize traversing part of this SOAP messages?
 
reply
    Bookmark Topic Watch Topic
  • New Topic