rest - How select json value in soapui property transfer from HTTP request? -
rest - How select json value in soapui property transfer from HTTP request? -
here raw response:
http/1.1 200 ok date: tue, 21 oct 2014 08:46:31 gmt content-type: application/json;charset=utf-8 transfer-encoding: chunked server: jetty(9.2.2.v20140723) {"id":"myid"}
i tried set property (source response test step, property can request, response etc.) response , responseasxml , both can not extract value. , seek xpath selection not work. possible extract id
http response json?
updated
if select responseasxml next string:
[<response xmlns="http://localhost/path"> <id>882fe993-d150-b67c-4b0f-014931e2dd21</id> </response>]
i have tried xpath:
declare namespace sam="http://localhost/path"; //sam:response
also wrote //sam:response
or //response
result [null]
string.
it worked me in comment answer: soapui - how utilize property transfer post request
you can use:
//*:id
json rest properties soapui transfer
Comments
Post a Comment