AnsweredAssumed Answered

How to provide a dynamic XML Response?

Question asked by alvgu02 Employee on Jun 1, 2015
Latest reply on Jun 2, 2015 by Nandeesha

Hi Team!

 

I developed a VS about query accounts from a customer. However I would not like have too many specific transactions to provide different quantity of accounts. There is anyway to add elements dynamically to an XML to provide a response.For example the XML below has two accounts for a customer but I would like to add dynamically other account tag depending on id customer and also to provide different values for each element inside of account element for example different value to  localBalance element.

 

<accounts>

  <account>

  <accountNumber>905232211</accountNumber>

  <accountType>CBK </accountType>

  <currency>CRC</currency>

  <localBalance>511800.53</localBalance>

  <dollarBalance>511800.53</dollarBalance>

  <availableBalance>491826.53</availableBalance>

  <dollarAvailableBalance>491826.53</dollarAvailableBalance>

  </account>

  <account>

  <accountNumber>905815908</accountNumber>

  <accountType>CBK </accountType>

  <currency>CRC</currency>

  <localBalance>801523.89</localBalance>

  <dollarBalance>801523.89</dollarBalance>

  <availableBalance>801523.89</availableBalance>

  <dollarAvailableBalance>801523.89</dollarAvailableBalance>

  </account>

<accounts>

 

Thanks! GA

Outcomes