Forum Discussion

LongRed's avatar
LongRed
New Contributor
14 years ago

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&param2=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
No RepliesBe the first to reply