How to work with SOAP Web Services command in Automation Anywhere V11

Introduction:

Web Service : It is standard medium to make the communication between the client and server over an Internet.
Types of Web Service

 1. SOAP (Simple Object Access Protocol)
 2. REST ( Representational State Transfer)

Click here to know the difference between   SOAP vs REST

In Automation Anywhere we have SOAP and REST web service command available.lets start the steps to use this in AA.

SOAP Web Service

Step 1: Search for sample web service page "calculator web service" that will use for demo.

Step 2: Click and Copy the particular page link "http://www.dneonline.com/calculator.asmx"

Step 3: Drag and Drop or Double click on SOAP Web Service Command.

Step 4: Click on Build URI



Step 5: Enter the copied link from web page followed by ?WSDL follow below.

http://www.dneonline.com/calculator.asmx?WSDL



Step 6: Click on Connect  to get services, port, operations and parameters. Select the particular Operations from drop down, that you want to use.

Select the Parameters to pass the input variables.

Step 7: Click on Save.

Step 8: Click On Test Output.

Save the Output details to some local folder in xml format which is optional.
C:\Users\Ashutosh\Desktop\RPA Project\SOAP.xml

you can get the Whole Response in XML format of if want to the get only the Selected response.

Assign the Value to Variable. (Prompt-Assignment)



Step 9: To Create the Xpath, Click on Select/View Response as Shown on above image.

then follow the below image.

Click on XML Tree value  <soap:Envelope>   <soap:Body>   <AddResponse> and then <AddResult>

Once you Clicked on <AddResult>, Automatically the XPath Expression will get Generated then Click on Save.

Assign Output result to Variable (Prompt-variable)



Step 10:  Show the Output Result in Message box.

Step 11: Save the Task and Run the Bot.

please follow the below screenshot for code reference.



Hope this Helps you to understand, please write down your comments/suggestions .
Happy Learning!!😊

Post a Comment

0 Comments