Micro Focus VuGen Web Services ~ Being an Effective Student


Micro Focus VuGen Web Services ~ Being an Effective Student

The Micro Focus “Web Services” Virtual User Generator protocol can be cryptic to the uninitiated, however, two ways to add content to this kind of script can become more understandable using the analogy of a student.


  • Being a “Student who reads the Text Book” (Gold Star to the right)
  • Being a “Student who copies off somebody else” (Silver Splat in the middle)

Student who copies off somebody else

“A Student Who Reads the Text Book”

VuGen can import the “textbook”, aka WSDL, of the Web Service, thus being a good student of the Web Service. (A WSDL, by the way, is a description or a contract which declares to clients, what the web service provides, and what arguments must be sent, and what you will get back  (if you ask nicely.) After importing the WSDL, adding new Web Service calls to the script can be easily done, but you must know what arguments are necessary to interact with the service. This requires research or examples of the SOAP requests.



  1. Have the WSDL URL ready
  2. Import the WSDL [ VUGen/SOA Tools → Manage Services → Import ]
  3. Have real knowledge of SOAP Request arguments ready
  4. Add a Web Service Call [ VUGen/SOA Tools → Add Service Call ]
  5. Select the Service, Operation, PortName, and enter any appropriate Input Arguments


Below is a simple call to a Calculator Web Service to add two integers 222 and 333.

web_service_call( "StepName=Add_101",



If you decide to use this method, you MUST ENSURE that you can install WSE 2.0 SP3 and WSE 3.0  Microsoft components on your Load Generators so that the web_service_call() will work. For more information, review the Micro Focus helpful online website here “Troubleshooting and Limitations for Web Services”.


“A Student Who Copies Off Somebody Else”

Now you and I both know in school we were rightly taught not to copy off someone else’s work. However, there are many situations in life where we learn by imitating what someone else is doing. Whether it’s learning how to use a table saw, or play a jazz riff on the piano, there’s a lot to be said for copying.


As for VuGen, a slightly more direct method of adding content to a Web Services script is to import an actual SOAP Request message that you were able to capture using any means possible. I got a valid request by using SoapUI.



  1. Have the SOAP Request XML file handy
  2. Know the “URL” for the Web Service
  3. Know the SOAP Action name (Found in the actual WSDL by keyword “soapAction”)
  4. [ VUGen / SOA Tools → Import SOAP ]
  5. Fill in the fields with the right data and you’re good to go.


Here’s what the result looks like in the VuGen script.

soap_request("StepName=SOAP Request",
    "<soapenv:Envelope xmlns:soapenv=\"https://schemas.xmlsoap.org/soap/envelope/\" 		xmlns:tem=\"https://tempuri.org/\">"


Note about Micro Focus Online Resources

Of the four methods identified on the Micro Focus site to add content to a Web Services script, this blog has discussed the 2nd and 3rd options listed in the ADM Help Site article Adding Web Service Script Content – Overview


1 Recording a Web Services Script

2 Adding New Web Service Calls  ←  GOOD STUDENT WITH TEXTBOOK

3 Importing SOAP Requests ←  COPYING STUDENT

4 Analyzing Server Traffic

Please follow and like us:

Follow by Email