Active Topics Memberlist Calendar Search Help | |
Register Login |
One Stop Testing Forum : Testing Tools @ OneStopTesting : LoadRunner @ OneStopTesting |
Topic: web services output capture |
|
Author | Message |
jay@jay
Newbie Joined: 30Mar2007 Online Status: Offline Posts: 15 |
Topic: web services output capture Posted: 31Mar2007 at 2:31am |
Hello
I have scanned the WSDL file to create a scipt that has user authentication and log off. The user authentication is provided with user data such as user id, pswd and application id. On successful user authentication, the server responds with a TOKEN ID that is unique for each login. I am able to view the token on the result containing the xml string. I need to capture that token and pass in to the logoff method for it to succeed. I have tried the xml extract fuction, but did not succeed. Here is the web service call for the login method. web_service_call( "StepName=authenticateUser_101", "SOAPMethod=AWSWebServiceService.AWSWebService.authenticateUser", "ResponseParam=response", "WSDL=Z:/Load Testing/CFTracker/AWSWebService.wsdl", "UseWSDLCopy=1", "Snapshot=t1146747031.inf", BEGIN_ARGUMENTS, "userID=mp44827", "Password=1Password", "appid=2", END_ARGUMENTS, BEGIN_RESULT, "authenticateUserReturn=Param_authenticateUserReturn", END_RESULT, LAST); The Param_authenticateUserReturn has the following xml in the extended log. I need to parse the TOKEN and feed it into the subsequent methods. Your help will be appreciated. Thanks authenticateUserReturn>< ;?xml version="1.0" encoding="UTF-8"?><AWSRESULTSET><SECUR ITY METHOD="AuthenticateUser"><STATUSCODE>0</STATUSCODE><MESSA GE>Authentication successful.</MESSAGE><TOKEN>7BAF465C-E307-47C4-B27F-3F36D117E397</TOKEN><SESSION_TIMEOUT>3600</SESSION_TIMEOUT></SECURITY>& lt;USER><FIRSTNAME>webnotes</FIRSTNAME><LASTNAME>IST1</LASTNAME> ;<EMAIL>[email protected]</EMAIL><JOBTITLE>IST Test</JOBTITLE ><EDR>00000000</EDR><LANGUAGE>US</LANGUAGE><DATEFORMAT>mm /dd/yyyy</DATEFORMAT></USER><PRIVILEGES><PRIVILEGE>ViewApplication Detail</PRIVILEGE><PRIVILEGE>ViewApplicationPendingByStatus</PRIVILEGE>& lt;PRIVILEGE>ViewBranchUpdateList</PRIVILEGE><PRIVILEGE>ViewDecisionElapsed Ratio</PRIVIL Post Resume: Click here to Upload your Resume & Apply for Jobs |
|
IP Logged | |
pranati01
Newbie Joined: 31Mar2007 Online Status: Offline Posts: 1 |
Posted: 31Mar2007 at 2:40am |
Hello,
I have the same problem. I can not capture the output parameter. I see in the extended log that it is saved as a parameter, but do not know the syntacsis for capuring the output parameter. It is not in the parameters list of the script. Your help is appreciated. Thanks! |
|
IP Logged | |
Forum Jump |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
© Vyom Technosoft Pvt. Ltd. All Rights Reserved.