Use SOAP in Windows Projects

Is there a workaround to use Soap requests over Windows projects? When tried on a project and library, it does not work in Windows legacy .

The SOAP API integration feature has been deprecated in Windows Project Compatibility and will be available only in Windows Legacy projects.

References:

Hence, choose to create a Windows-Legacy process and use the SOAP feature, but note that this option would not be available with future Studio releases. For more details, refer About the Windows - Legacy Compatibility .

Tutorial:

  1. Create in UiPath Studio a Windows - Legacy project
  2. In Manage Packages -> find and install UiPath.WebAPI.Activities[1.16.2] package
  3. In a workflow, add the SOAP Request activity and configure it as below,

Service Description: https://www.dataaccess.com/webservicesserver/numberconversion.wso?WSDL

Contract: NumberConversionSoapType

Method: NumberToWords

ubiNum of type System.UInt64: 10

Image_2023-05-29_19-03-22.png

Image_2023-05-29_19-05-58.png

To get the specific value from the XML, the below approach may help:

  • Assume that the below XML is present and it is required to retrieve the NumberToWordsResult value.
"\r\n  \r\n  \n    \n      ten \n    \n  \r\n"

  • Deserialize XML

XML String: out_Data

XMLDocument: out_xmlDocument

Image_2023-05-29_19-32-10.png

  • Assign activity

namespaceURI: "http://www.dataaccess.com/webservicesserver/"

Image_2023-05-29_19-32-30.png

  • Assign activity

numberToWordsResult: out_xmlDocument.Descendants(XName.Get("NumberToWordsResult", namespaceURI)).FirstOrDefault().Value

Image_2023-05-29_19-32-51.png

  • Log Message activity

Log Level: Info

Message: numberToWordsResult

Image_2023-05-29_19-33-50.png

Results:

Image_2023-05-29_19-33-29.png