Ask a Question

Validating request parameter in VS request with datasource property

SOLVED
rahuldutta
Occasional Contributor

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!

 

1 REPLY 1
TanyaYatskovska
SmartBear Alumni (Retired)

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



cancel
Showing results for 
Search instead for 
Did you mean: