SOAP UI request

Hi All

How to give the soap request in SOAP Request activity. I have given the wsdl and click on get icon and got the details. Where to give the soap request so that I will get the reponse

image

Thanks
Kamesh

2 Likes

Put values in “Values” field and try to invoke the service

Just giving the parameters to the request , you will send it directly.

If you want to get a session or authentication token from one method and pass it some other request, you need to use two different requests, one followed by the other and passing the output of first request as input to the second request @Kamesh

This is the error message i am getting when i place the request xml in the value section

image

Hi @Kamesh

Check this

Thanks
Ashwin S

But I am getting the response in soap request

@Kamesh,

You don’t need to pass entire xml there. Just pass the inputs like
image

But we are passing the inputs as this in soap UI

image

1 Like

Header and Body has nearly 50 Parameters. How to go with this

You are passing headers to the SOAP request @Kamesh?

I hope , we don’t need to pass any headers and no other option to pass the request without giving the params. Just leave blank for all the optional params and pass the required :slight_smile:

If you find it hard to pass 50 params everytime,

  1. save them in the excel
  2. Read excel and store in data table
  3. convert them to a dictionary
  4. pass the dictionary values as the inputs. This will be easy if you want to change any values also :slight_smile:

Hope this is clear @Kamesh

Hi Hareesh

Sure will try that. How to do this (convert them to a dictionary)

Thanks
Kamesh

Go to manage packages and install Microsoft.Activities.Extensions

then you will get all the dictionary related activities

Then use add to dictionary activity and create new dictionary with required types

  1. provide the key as the parameter name in soap ui
  2. Value is the value you want to enter to the params

image

HI i am getting the same problem. are you able to resolve it. What was your step? Could you please help. Thanks

Hello Faheem,
In this video, I use HTTP Request to call any SOAP API. I use these steps in case of special WSLD that are not compatible with SOAP request Wizards, also not compatible with new service from the library.

0:54 SoapUI application used to test SOAP API
3:05 Test commands from SoapUI
4:30 How can we test SOAP API from Postman
5:50 In UiPath Studio you need to install Web.Activities
7:30 SOAP Request activity
9:30 Create a New Service inside of Library
11:10 RAW approach to SOAP API command
13:30 How we build a simple XML
15:00 Run the process that builds XML to see the result
15:20 Create a complex XML
16:30 Step by Step XML creation
20:10 Main element creation that also includes attributes
23:00 Test the complex XML creation
23:50 Deserialize XML
25:15 How to extract Data from XML Nodes
27:40 How to extract Data from XML Attributes

Thanks,
Cristian Negulescu

Thanks that was really helpful

1 Like