AnsweredAssumed Answered

VS stitching Request - Response when there are repetitive node values

Question asked by pranaygupta on Nov 5, 2018
Latest reply on Nov 20, 2018 by pranaygupta

Issue: How to stitch Request-Response for a request which contains repetitive node values (arrays) for same request?

 

NOTE: Based on array count - response too has one or more array count for each request

 

Question: How to create VSM & VSI so that - manual update of VSI for each array count can be avoided. 

 

For EX: If request is sent with array count 1 or 4 or 10 - VSI should give unique response for each request.  I should not update VSI to accommodate every time with new array count. A sample project would help me to implement this.

 

Sample Request XML (array complexType only once):

<complexType>

<name>ABC</name>

<account>1234</account>

</complexType>

 

Response:

<complexBalance>

<account>1234</account>

<balance>10</balance>

</complexBalance>

 

Sample Request XML (array complexType repeated 2 or more based on user request):

<complexType>

<name>ABC</name>

<account>1234</account>

</complexType>

...

<complexType>

<name>XYX</name>

<account>7890</account>

</complexType>

 

Response:

<complexBalance>

<account>1234</account>

<balance>10</balance>

</complexBalance>

..

<complexBalance>

<account>7890</account>

<balance>20</balance>

</complexBalance>

Outcomes