You can have multiple response files for each request. The files follow the pattern <op>-req.xml and <op>-rsp<number>.xml
This is covered in the DevTest 9.0 manual on page 733
Import Request/Response Pairs
A request/response pair consists of one request file and one or more response files.
When you import a request/response pair, the request is processed against the virtual service.
If the virtual service contains a signature with the same arguments, a specific transaction is added to
the signature.
If the virtual service does not contain a signature with the same arguments, a signature is added. The
details of the request and response are added as a specific transaction in the signature. A default
transaction is also added.
The request/response pair must be in text or XML format.
The following list contains an example of the file names in a request/response pair:
- depositMoney-req.xml
- depositMoney-rsp1.xml
- depositMoney-rsp2.xml
- depositMoney-rsp3.xml
The request file name must include a prefix followed by the string -req.
The response file name must include the same prefix followed by the string -rsp. As the preceding
example shows, you can provide multiple response files by adding a number after the string -rsp.
Multiple response files are applicable to messaging scenarios.