Active TopicsActive Topics  Display List of Forum MembersMemberlist  CalendarCalendar  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin


 One Stop Testing ForumTesting Tools @ OneStopTestingLoadRunner @ OneStopTesting

Message Icon Topic: web services output capture

Post Reply Post New Topic
Author Message
jay@jay
Newbie
Newbie


Joined: 30Mar2007
Online Status: Offline
Posts: 15
Quote jay@jay Replybullet 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 IP Logged
pranati01
Newbie
Newbie


Joined: 31Mar2007
Online Status: Offline
Posts: 1
Quote pranati01 Replybullet 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 IP Logged
Post Reply Post New Topic
Printable version Printable version

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



This page was generated in 0.078 seconds.
Vyom is an ISO 9001:2000 Certified Organization

© Vyom Technosoft Pvt. Ltd. All Rights Reserved.

Privacy Policy | Terms and Conditions
Job Interview Questions | Placement Papers | Free SMS | Freshers Jobs | MBA Forum | Learn SAP | Web Hosting