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

Response XML Size Test

Anantharaman Gnanasekaran
Greenhorn

Joined: Feb 07, 2012
Posts: 2
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.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12682
    
    5
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

Java Resources at www.wbrogden.com
Anantharaman Gnanasekaran
Greenhorn

Joined: Feb 07, 2012
Posts: 2
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
 
 
subject: Response XML Size Test
 
Similar Threads
Sample Questions for 288 - Need answers
Log4j created file not able to delete while testing my application??
Test 252: Mock exam
000-341 sample test questions
Facade design pattern in web services