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

sidhusidhu Posts: 13
edited April 27 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_parasoftbenken_parasoft Posts: 890 ✭✭✭
    edited April 27

    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"

  • sidhusidhu Posts: 13

    Thanks Benken for the help it worked

Sign In or Register to comment.