Forum Discussion
Hi, just to follow up on my previous post and state what I'm are trying to achieve; I have a REST web service method that returns a JSON response. I would like to extact a value from the body of the repsonse and pass it to another REST web service method that takes the value in the URL. How would I do this in SoapUI 5.1.2?
Simplified Example (not related to the screen shots in the previous post)
------------------------
First web service method;
GET /customers
{"customers": [
{
"firstName": "John",
"lastName": "Smith",
"customerId": "12345"
}
]}
>> extract customerId from JSON response, then >>>>
second web service method with customerId
GET /customer/12345
to extract customerID try $.customers[0].customerId
this tool may help - http://ashphy.com/JSONPathOnlineEvaluator/
Related Content
Recent Discussions
- 4 days agoemoya