Tag: api

Karate get one variable from a request

问题内容: Given request """ <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.openkm.com"> <soapenv:Header/> <soapenv:Body> <ws:login> <!--Optional:--> <user>TestUser</user> <!--Optional:--> <password>TestUser</password> </ws:login> </soapenv:Body> </soapenv:Envelope> """ When soap action 'http://ws.openkm.com/OKMAuth/login' Then status 200 * def token = //return Result = response={soap:Envelope={={soap:Body={ns2:loginResponse={=‌​ {return=a866fb4f-47e‌​4-4895-ac13-2118b6c0‌​25c8}, @={xmlns:ns2=ws.openkm.com}}}}, @={xmlns:soap=schemas.xmlsoap.org/soap/envelope}}}, responseStatus=200, __loop=-1, responseCookies=null, token=a866fb4f-47e4-4895-ac13-2118b6c025c8} I got this response from a request. How can I get the ‘return’ or the

An Api from Currencylayer

问题内容: Currency layer provided me with a LIVE API where I can get current exchange rates. So I decided to to use this live API for currency conversion (i’m beginner on programming trying to learn and improve) I changed the code to some extent. I have limited knowledge of jQuery . If somebody is willing