This procedure describes how to create a virtual service image from request/response pairs using the UI.
Follow these steps:
The Virtual Service From Request/Response Pairs page opens.
Note: To load parameters from a previously saved service image, click Load from File at the bottom of the window.
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 headers.
The configuration window for the selected transport protocol opens.
The Virtual Service from Request/Response Pairs window opens.
If you select a different protocol, that protocol is presented. You can provide the configuration information for it.
The Data Protocols panel opens, where the request/response pairs were analyzed and appropriate data protocols for the request and response were defaulted.
The virtual service request/response pairs for token identification and conversations display. Only stateless transactions are supported from request/response pairs.
Note: To save the settings on this recording to load to another service image recording, click Save above the Finish button.
After the processing of the VS image finishes, you can open the service image and the virtual service model.
Copyright © 2014 CA Technologies.
All rights reserved.
|
|