Validating request parameter in VS request with datasource property
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2020
07:40 AM
11-16-2020
07:40 AM
Validating request parameter in VS request with datasource property
Hi,
I want to validate the query parameter from the incoming request to my virtual service with an excel datasource property and then dispatch a response if they match. Can someone suggest how to that? If this would require script style of dispatching, then what is the code to validate that the query param is part of the propery values in the excel?
Please send me your remarks. Thanks!
Solved! Go to Solution.
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2020
12:50 AM
11-18-2020
12:50 AM
Hi @rahuldutta,
As far as I understand, you'll need to write a custom script to make it possible. Please take a look at the following sample - I think it should help you:
A Dispatching script to get responses based on the values in Request Body
---------
Tanya Yatskovskaya
SmartBear Community and Education Manager
Tanya Yatskovskaya
SmartBear Community and Education Manager
