When creating a Virtual Service from request and response pairs (RR pairs) the files should follow some specifications:
For Naming Conventions, please refer to our documentation of the DevTest release you are running in section "Naming Conventions" of "Request/Response Pairs".
For Sidecar files, please refer to our documentation of the DevTest release you are running in section "Sidecar Files" of "Request/Response Pairs".
And also the KB: How to add custom headers to Request/Response when creating VS using RR pair - Adding custom headers to Request/Response when creating VS using RR pairs.
For REST request and response pairs, the files should follow the format specified in our documentation of the DevTest release you are running in section "Request/Response Pair Format" of "REST Data Protocol Handler".
All supported DevTest releases.
The first line should contain an XML Declaration.
For SOAP request and response pairs, the SOAP envelope payload is required.
Example:
If there is a need to add a base path to the VSM, you can do it by adding a POST URL as the first line in the request file:
Example:
A basepath can also be added or modified in the VSM, Listener step after the Virtual Service is created.
There are few SOAP payloads examples available in the DevTest Portal, under Create, Virtual Service, RR Pairs.