LongRed
14 years agoNew Contributor
Groovy newbie - how do I get URL parameters from a request
Hi community,
I have a soapui mock service running. The incoming request looks like
example.com/a_path/b_path?param1=value1¶m2=value2
Question: How do I get value1 and value2 of the incomming request URL? I obviously need some sort of OnRequest Script but I have no clue about how it should look like.
After reading the values the script should then response with e.g. 401 for all invalid values and only for some specific ones with given soap responses.
Thanks in advance for the help,
RL
I have a soapui mock service running. The incoming request looks like
example.com/a_path/b_path?param1=value1¶m2=value2
Question: How do I get value1 and value2 of the incomming request URL? I obviously need some sort of OnRequest Script but I have no clue about how it should look like.
After reading the values the script should then response with e.g. 401 for all invalid values and only for some specific ones with given soap responses.
Thanks in advance for the help,
RL