How to create a VS with multiple responses for one request

Document ID : KB000044750
Last Modified Date : 14/02/2018
Show Technical Document Details


- What is the procedure to create a VS that would send multiple responses to the client for one request?


- To create a VS with multiple responses for one request, you will need to supply multiple rsp files in the Request response pairs. 

The request/response pairs should be named with a unique identifier, then a "-req" on the request side and a "-rsp" on the response side, with an .xml or .txt extension. For example, addUserObject-req.xml and addUserObject-rsp.xml. 

Note: A request can have multiple responses. Using the previous example, the following file names would create one request with three responses. 

VSE generates a transaction for each request/response pair in the directory you specify. For HTTP/S, the files must contain the entire SOAP envelope and the header.

Additional Information:

- Please refer to the documentation in the section "Home >> Using >> Using CA Service Virtualization >> Using the Workstation and Console with CA Service Virtualization >> Creating Service Images >> Create a Service Image from Request-Response Pair" of DevTest documentation. 


- This requirement is possible to achieve using RR Pairs. However, if you have to do this using "By Recording", there is no out of the box way for this. Once the VS is created, you would have to modify the VSM to customize it to have repeated steps of "VS Image Response Selection" and "CICS Transaction Gateway Responder" as a pair. I am afraid, such customization is beyond the scope of support.