Go Back   CodingForums.com > :: Client side development > XML

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-08-2012, 05:40 AM   PM User | #1
Tektronics
New to the CF scene

 
Join Date: Feb 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Tektronics is an unknown quantity at this point
Calculate Response XML Size

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. 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.
Tektronics is offline   Reply With Quote
Old 02-09-2012, 02:57 AM   PM User | #2
Alex Vincent
Moderator


 
Join Date: May 2002
Location: Hayward, CA
Posts: 1,428
Thanks: 1
Thanked 19 Times in 17 Posts
Alex Vincent is on a distinguished road
We need a little bit more information. How are you generating this XML (specifically, what programming or scripting language are you using to do the job)?
__________________
"The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
June 30, 2001
author, Verbosio prototype XML Editor
author, JavaScript Developer's Dictionary
https://alexvincent.us/blog
Alex Vincent is offline   Reply With Quote
Old 02-09-2012, 01:17 PM   PM User | #3
Tektronics
New to the CF scene

 
Join Date: Feb 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Tektronics is an unknown quantity at this point
Alex,

The XML generation or the Response XML generation is not a problem. Want we want is a tool which will build data for ResponseXML to populate all fields.

Using WDSL and XML, we need a tool to build a response XML for all the fields including occurences with some sample data. We can give the field length as Input parameter if needed.

But once the data is built, we can pass it back to Web service and check whether it can take up the load and will not return any memory overflow issue.

What happens now is we test in lower regions, where the data is limited and the testing goes fine. Once in Production, the responseXML size increases to hit the 100Kb limit.

I hope to have provided necessary explanations.

Thanks for your time.
Tektronics is offline   Reply With Quote
Old 02-10-2012, 05:09 AM   PM User | #4
Tektronics
New to the CF scene

 
Join Date: Feb 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Tektronics is an unknown quantity at this point
There is no problem with generating Response XMLs. The idea is the response XML we get during Unit testing has very limited data as it is from the Test regions. But once the code moves to Prod, we are getting hit due to response XML crossing 100 Kb size which is the limit in out web services side.

So we need a tool to generate a response XML using WSDL and XSD with test data for all fields including the occurances so we can be assured of near real time data. The field length can be given as input parameter.
Tektronics is offline   Reply With Quote
Old 02-13-2012, 12:39 PM   PM User | #5
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,703
Thanks: 5
Thanked 875 Times in 850 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
One post was in moderated queue and might not have been visible. I’ve approved it now. Please note.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:04 PM.


Advertisement
Log in to turn off these ads.