header
header
Main Menu
Home
Eviware Store
Downloads
Products
News
Forum
Eviware Blog
Search
FAQs
Customer Area
Support
Documentation
Tutorials
CookBook
Downloads
Forum
Login Form
Welcome, Guest. Please login or register.
January 09, 2009, 03:00:20 pm
Username: Password:
Login with username, password and session length

Forgot your password?
 
Capture a value from the response
Welcome, Guest. Please login or register.
January 09, 2009, 03:00:20 pm
Home Help Search Login Register
News: The Forums are up! Welcome to eviware.

+  Eviware Forum
|-+  soapUI
| |-+  soapUI
| | |-+  Capture a value from the response
« previous next »
Pages: [1] Print
Author Topic: Capture a value from the response  (Read 480 times)
Deepu
Newbie
*
Posts: 1


« on: April 01, 2008, 01:30:46 pm »

I am getting the following reponse

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <ConvertTempResponse xmlns="http://www.webserviceX.NET/">
         <ConvertTempResult>12</ConvertTempResult>
      </ConvertTempResponse>
   </soap:Body>
</soap:Envelope>

I want to capture the value 12 to validate the repsonse. Please let me know how to do it .
Logged
omatzura
Administrator
Hero Member
*****
Posts: 1,666


« Reply #1 on: April 01, 2008, 01:52:03 pm »

Hi,

add an XPath assertion with the xpath-expression

declare namespace ns='http://www.webserviceX.NET/';
//ConvertTempResult/text()

and set the expected value to

12

Hope this helps!

regards,

/Ole
eviware.com
Logged
ahsu
Newbie
*
Posts: 10


« Reply #2 on: April 23, 2008, 09:53:36 am »

Hi,

I am new to this SOAP UI tool. I had a question regarding the correlation.
In this post they want to validate a value (12). That is fine.

But if i want to capture a dynamic value from the response then how should i proceed in this aspect.

For ex if i am searching a book (for java) in the website. I will get the details of that book. But if i want to search a 'C' book the details will differ (like author, book name, publicaiton etc). Depending on the user input value the page is differing.

So now please tell me how can i capture the author, bookname, publication such that for the respective input i should get the relevant page of that input.

Please do the needful.
Thanks in advance.

Thanks
ahsu
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
header header
header
header