Store a value from XML/XPath output of a REST query in a SoapUI property for later use
I'm new to SOAP, REST, and SoapUI. I'm working to build a test case that simulates a user login & then extracts the user list from the server. My log in command is working, and I get the XML output I want: <MGRestTokenResponse xmlns="http://schemas.datacontract.org/2004/07/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <Message>success</Message> <Token>---THIS IS THE DATA I WANT---</Token> </MGRestTokenResponse> I'm trying to get the Token value stored in a SecurityToken property inside SoapUI but nothing is working. I've tried using XmlToolBox to get an XPath result and I've been given: /MGRestTokenResponse[@xmlns="http://schemas.datacontract.org/2004/07/"]/Token/text() or /MGRestTokenResponse[@xmlns="http://schemas.datacontract.org/2004/07/"]/Token/text() but nothing I'm trying is working. The environment I'm working in is REST only. How do I extract values from the responses & transfer them to a property?Solved2.9KViews0likes5Comments