How to parameterize the URL path and use it in proxy connection
Hi,
Does anyone have idea on how to parameterize the URL path and reuse it in JSON responder and proxy connection?
E.g my URL path is /path/parasoft/1234/api and I am making a GET call
now 1234 value will be different each time I make a GET call. I have to parameterize it and use it as a condition in my responder and also use the same in proxy connection to direct to live system.
Answers
-
Hi,
In the Message Proxy and Responder correlations you can set the path to forward, etc. using a wild card to represent the unknown path segment. So something along the lines of /path/parasoft/*/api could be used to match.
Here is documentation on path correlation
https://docs.parasoft.com/display/SOAVIRT20231/Message+Responder+Overview#MessageResponderOverview-URLPathCorrelationTo extract the id from the URL and data bank it for use in the response the REST URL Data Bank tool can be used
https://docs.parasoft.com/display/SOAVIRT20231/REST+URL+Data+BankHope this helps!
0 -
Thank you william
0 -
You're welcome!
0