SOAP Request Invoke No Data

Hi all,

I am currently exploring the SOAP API call functionalities within UiPath. The WSDL link is publicly available, and requires no authentication whatsoever.

Unfortunately, the UiPath activity doesn’t give me the same output an online API test tool does (Via https://wsdlbrowser.com/). Attached, I have included two screenshots showing: 1. The results via WSDL browser

and 2. via UiPath. As you can see, the WSDL browser does provide me with the all the desired data, while UiPath only provides the date.

Intrestingly, date is the only missing variable in the UiPath overview but is the only output presented when ‘invoked’. Removing the other three variables (Valid, Name & Address) from the overview corrupts the whole request (Method ‘CheckVatPortTypeClient.checkvat’ not found).

All help is appreciated!!

Regards,

Tjeerd

Hi,
Likely it is activity defect. After completing the wizard parameters are also not saved… :frowning:
Cheers

Hi,
tested with another open SOAP service http://www.dneonline.com/calculator.asmx?wsdl
with similar result: set-up via wizard failed but after manually setting parameters it returns correct values
Cheers

Hi J0ska,

I see, I got it working for the calculator as well. However, when I configure the parameters for the VAT check it gives an error. See the attached screenshots. The WSDL link is:http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl

Do you have suggestions how to solve this issue?

Error

Best,

Tjeerd

Hi,
You have to define all 5 parameters like shown in the wizard - all are mandatory.
The call is then successful but with the same return values - only date is returned.

I tested with another open SOAP service - http://www.thomas-bayer.com/axis2/services/BLZService?wsdl and got also crappy result so I suspect it’s activity issue.

Cheers

1 Like

Hi J0ska,

Thanks for the investigation, I really appreciate it! I agree with the conclusion that the activity is probably not functioning as it should, since the VAT Check only requires two parameters to be submitted (countryCode & vatNumber), instead of 5, for a succeful API call. I will contact UiPath and hope they will be able to fix it.

Best,
Tjeerd

Hi,
Right, according the wizard all 5 are mandatory
image

But you are right that according https://wsdlbrowser.com only two parameters are needed…
Definitely some gap in the activity :frowning:

Cheers

Have a look at this thread,

You may try ‘Http Request’ instead to do the same task as per this thread.

Thanks,
Rammohan B.

3 Likes

Hi @Rammohan91,
Thx for hint.
Not as comfortable as “SOAP Request” activity but works.

Cheers

Hi J0Ska, Rammohan,

I am trying to follow the method described, but it is not working.

  1. Which header should I use? When using “<soap:Envelope xmlns:soap= ““http://schemas.xmlsoap.org/soap/envelope/””>” I just receive the full XML as output
  2. As Parameters I have set countryCode & vatNumber, is that correct?

Please see attached screenshots.

Thanks again for the help!

Best,

Tjeerd

@J0ska It would be great if you can attach your xamls for reference for others.

Thanks,
Rammohan B.

Hi,
Attached find a sample project using “HTTP Request” to call SOAP web service.
SOAP.zip (3.6 KB)

Cheers

4 Likes

Thanks for the help guys! :slight_smile:

FYI:
UiPath Ticket provided me with the following response:

Kindly be informed that we have seen such issue with few of the WSDL files.
As a workaround you can either use http request activity, Code activity or create custom code to write the VB code for calling the SOAP request.
Please find the below the link as a reference:



Where is used The variable name “SOAPAction” ? I understand that It contains the method name but I didnt find where you used the variable. I followed your steps but the request does not contain any data. If I send the request in SOAP, It returns me the correct string

image

Hi,
it is in “Headers” collection.

Cheers

quick update about this old post.
Just checked and now it works fine.
I tested the SOAP Request activity with EU VIES wsdl and it returns as expected.
two heads-up:

  1. the EU VIES Technical Information page provides the wrong wsdl link… the good one to use is: https://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl
  2. all parameters have to be listed into the activity parameters collection, no matters whether they are defined as optional or required. for optional params you dont want to use, just pass a blank value

Hi,

Thanks for the update. I tried the activity but I’m getting Method ‘checkVatPortTypeClient.checkVat’ not found error. Any idea why is this happening? Which version of the activity package did you use?

Hi,
You can see in the first message of this topic how to configure your SOAP call… you just have to fill fields, no “” format

Hi,
i’m using studio 2020.10.0 and package UiPath.Web.Activities 1.6.0
this is the way the wizard returns results when you hit “Invoke”

and this is how it comes out when you execute the activity

However, there is still something bugged somewhere, because when you hit “Ok” from the wizard it doesnt populate the parameters collection in activity properties as you would expect, and you’ve got to fill in, making sure you list all the 5 arguments with the correct variable type