Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

how to configure json response in Virtulaise for x-www-form-urlencoded request from SOAtest

Options
sidhu
sidhu Posts: 36
edited April 2020 in SOAtest

Hi i have x-www-form-urlencoded request setup in parasoft soatest , wanted to understand how to develop json response in parasoft virtualise since expected response type for the request is json.This will be a unique integration as request and response types are different in the same call. The request is ‘x-www-form-urlencoded’ format , whereas the response is ‘json’ format.

Comments

  • benken_parasoft
    benken_parasoft Posts: 1,232 ✭✭✭
    edited April 2020
    Options

    In Virtualize, you would configure a JSON message responder which enables you to configure the JSON response message on the "Response" tab. On the "Responder Correlation" tab, you won't be able to correlate on the "Request Body" since the incoming request can't be parsed as JSON. Instead, you could correlate using the "URL Path" and "HTTP Methods" options instead. On the responder's "Options" tab under "Request Handling", you'll also probably want to un-select "Convert incoming request to XML before applying responder correlation"

  • sidhu
    sidhu Posts: 36
    Options

    Thanks Benken for the help it worked