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).
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,
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.
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.
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
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:
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
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?
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