Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Feb 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  • #2
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,460
    Thanks
    1
    Thanked 23 Times in 21 Posts
    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

  • #3
    New to the CF scene
    Join Date
    Feb 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #4
    New to the CF scene
    Join Date
    Feb 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #5
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,636
    Thanks
    6
    Thanked 1,003 Times in 976 Posts
    One post was in moderated queue and might not have been visible. I’ve approved it now. Please note.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •