• 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

Response XML Size Test

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, Please find below my scenario. I am very new to XML and working on a fix for this issue for my team

During the Design, coding, unit testing of Web Services, developers have to create the XML format manually for external system. Inturn the system will generate response xml with loaded actual data.

For external system, the web service, response XML's size limits will be a constraint. For Instance, External system could handle response XML with maximum of 100KB limit. It is very hard for the developers to create a load data file of maximum size manually while testing. Fully loaded response XML file should be considered in order to avoid the errors in later stage. If my response is above 100 Kb, then I have redesign everything again which will be two late

Is there a tool or a way to find out the maximum size of my response XML. I am not sure if any XML Spyware or Editors will actually help.

Idea is to develop a Web service replicator/ XML generator which should be able to generate the web service response XMLs with sample data. Also XML generator should be able to calculate the maximum XML file size for the web service.

Thanks for your time and help.
 
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
If this was my problem I would have the XML generator actually write to a file and have the service emulator simply read that file to generate the response.

Here are the advantages I see:

1. you automatically get the file size
2. you can use a text editor to modify various XML elements to emulate different service responses
3. you can use a text editor to introduce deliberate errors in order to check error handling by clients.

Bill
 
Anantharaman Gnanasekaran
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

William Brogden wrote:If this was my problem I would have the XML generator actually write to a file and have the service emulator simply read that file to generate the response.

Here are the advantages I see:

1. you automatically get the file size
2. you can use a text editor to modify various XML elements to emulate different service responses
3. you can use a text editor to introduce deliberate errors in order to check error handling by clients.

Bill



Hi Bill,

Thanks for your time. This is what we have been doing, but as for the testing is concerned it is done on the Test regions where we do not have enough supporting data to actually have a realistic load check.

We have good amount of history data in Production region for which we donot get access.

Higher regions like UAT/Environ have slightly better data but mostly during Design/Unit Testing we will not be able to test our code against those regions, as mostly it is booked for other enhancements and will not have permission to access data.

Hence we are looking for some tools. Even some properitory tools can be purchased and used, but only problem before we acquire, we want to be absolutely sure if the tool will help our case.

Thanks,
Anantharaman
 
I like you because you always keep good, crunchy cereal in your pantry. This tiny ad agrees:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic