This topic provides tips for virtualizing JSON messages.
When virtualizing JSON messages:
- Set up virtual asset correlation (asset deployment settings): In the .pva’s HTTP settings, set a path that represents the common beginning part of the HTTP URL. For example, if all the requests for JSON content are expected to start with
the HTTP path for the virtual asset containing the JSON Responders needs to be set to , then
/services/JsonServlet. See Configuring Server and Deployment Settings for details.
Create one or more Message Responders using one or more of the following methods—depending on whether you want the virtual asset to return different responses based on an HTTP URL path value or an HTTP URL parameter value.
- Configure the JSON content as described in Form JSON View Options.
- (Optional) Add a data source and parameterize as described in Parameterizing Tools with Data Source Values, Variables, and Extracted Values.