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 (https://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl).

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.

Operation

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.

Leave a Reply

Your email address will not be published. Required fields are marked *