Record Web Services Script Using HTTP/HTML Protocol

You can use two different protocol to record the Web Service script in Load Runner. Below are the two protocol.

  • Web - HTTP/HTML  Protocol.

  • Web Services Protocol (Click on topic to know how to script using Web Service Protocol)

In this post we will know how to record the web service script using Web - HTTP/HTML protocol. We can use many input format to script the web service script such as XML, WSDL etc. Most used and important input format used for web service scripting is WSDL. So we will take the important input format used to script for the demo.

WSDL used for scripting in this post is :

Web Services HTTP/HTML - Scripting using Web - HTTP/HTML Protocol

Step 1 : Launch the Vugen application.

Step 2 : Select the Web - HTTP/HTML protocol from the Protocol section. Enter the script name and directory where the script need to be saved. Then click on create button.

Vugen Recording Window

Step 3 : Once the main explore is displayed. Then you need add the web custom request to your script by going to Design -> Insert  in Script -> New Step.  Steps Tool bar will displayed as shown the below image.

Step 4 : Search for web_custom_request in the steps tool bar and click on it. Most important window will be displayed therefore follow the below steps.

  • Enter the end point of the WSDL in the URL section of the window.  (Refer the step 5 to know the end point )
  • Paste the XML of the request in the body section of the window.
  • Then select the request(from top to bottom) in the body section and right click.
  • Select the Convert to C format from the menu of right click.
  • Once the conversation is completed then click on OK button.

Custom window

Step 5: If we not sure how to get the end point of the WSDL and the request then check below image.

  • Copy the WSDL and then open SOAP application. Click on empty soap project. Enter the WSDL in wsdl section and click ok.
  • WSDL will be loaded and all the request will be loaded.
  • Click on the request you want to script.
  • Endpoint will be loaded at the top and the below the request will be displayed.


Step 6: Web Service script will created. Later run the script and you will see the results in the output window. (If the result is not show in the output window then open the run time setting -> Log -> Enable logs -> check the Extended log boxes).


Record Web Services Script using Web Services Protocol

We can record web service script using two protocol as mentioned below. Selection of the protocol will depend mainly on the licence available for the protocol

  • Web - HTTP/HTML  Protocol.

  • Web Services Protocol.

We will see how to record the web service script using web services protocol.


Web Services Protocol

Launch the Vugen application.

Select the Web Service Protocol in from the protocol selection window.(Click here to get the information about section and its fields).

Click on SOA Tool from the menu bar of the Vugen application. And select the Manage Services from the SOA Tools drop down. Then  you need to click on import button in the Manage Services Window.

Web Service Import

Once the import window is displayed therefore you need to enter the WSDL which you need to to create the web service script in the Vugen. After entering the WSDL then click on import button.  Sample WSDL which used to demo (

Import WSDL

Successful import of the WSDL, all the details of the WDSL will be loaded. Then click on OK button.

WSDL Import Window

After that again click on SOA Tool from the menu bar and select the Add Services Call. Here is where you need to select the service which you want to add for the script. Importantly there will be multiple services in the WSDL so you need understand which service you need to add for the scrip.

  • In this section all the WSDL which is added in the manage service will be displayed so select the WSDL from the service section drop down. Below only one WSDL is displayed as we have added one WSDL.
  • Once you select the WSDL in Service section, all the Operation related to that WSDL will be displayed in the drop down. You need to select the important operation which you want to script.
  • If you want to test your script using the Stub instead of real end point. You can check the override option therefore you can enter target end point to your stub end point.


Now most important part is to select the mandatory headers, user credentials, input and output parameter of the operation. Click on ok button

Input Parameter

Output Paramter

Output Parameter

Input Parameter

After clicking on OK button. Your Web service script is ready as show below therefore you can run the script.