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: Access a value from the results of web_service_ca

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


Joined: 30Mar2007
Online Status: Offline
Posts: 15
Quote jay@jay Replybullet Topic: Access a value from the results of web_service_ca
    Posted: 31Mar2007 at 2:25am
1. What version of LoadRunner (LR) or PerformanceCenter (PC) are you using? - 8.1
2. What is the protocol you are recording? - Web Services
3. Which LoadRunner/PerformanceCenter feature or service packs are you using? - VuGen
4. What kind of LoadRunner license do you have - Subscription, Perpetual, Virtual User days, or Evaluation? (choose the one that fits your license model) - Perpetual
5. What platform(s) and Operating Systems? Include version and service packs. Win XP SP2
6. If you have filed a service request with Mercury, what have they told you at this point with respect to your issue?


Hi, Everybody!

I'm testing a web service.
Values from the results of the web_service_call function with a Web Services Vuser are saved in a parameter between BEGIN_RESULT and END_RESULT with the format:

ResultName=ParamName

But I can't use this value forward, because I can't access it. How can I do that ?

Thank you!



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:45am
Hi,

Here is the code:


int UID = web_service_call("StepName=getNextID_103",
"SOAPMethod=UniqueIDServiceService.UniqueIDService.getNextID",
"ResponseParam=response",
"WSDL=C:/../UniqueIDService.wsdl",
"UseWSDLCopy=1",
"Snapshot=t1174497367.inf",
BEGIN_ARGUMENTS,
END_ARGUMENTS,
BEGIN_RESULT,
"getNextIDReturn = Param_getNextIDReturn",
END_RESULT,
LAST);

lr_think_time(3);


lr_message("The value of getNextId is %d", UID );

return 0;


But the result is always 0. And I see the result in the Extended log:
vuser_init.c(7): Notify: Saving Parameter "response = <?xml ...>
vuser_init.c(7): Notify: Saving Parameter "Param_getNextIDReturn = 123"

I just want to retrieve the value of getNextIDReturn (is int) and assign it to a variable that can use afterwards.
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.094 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