Hi All,
After being unsuccessful with SOAP API calls in UiPath and consulting colleagues, I decided to try and doing it in Python with the following code.
import requests
def convertNumbersToWordsSOAP(Number)
url = "https://www.dataaccess.com/webservicesserver/NumberConversion.wso"
headers = {'Content-Type': 'text/xml'}
body = """<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<NumberToWords xmlns="http://www.dataaccess.com/webservicesserver/">
<ubiNum>""" + Number + """</ubiNum>
</NumberToWords>
</soap:Body>
</soap:Envelope>"""
response = requests.post(url, data=body, headers=headers, timeout=8)
return str(response.content)
Please note that the above code works when I run it in outside of UiPath. It is a public SOAP API that you send digits and it returns the digits in words.
I have been able to get very basic Python scripts working in UiPath but this one is giving me a hard time. I get a Load Python Script: The specified script file was not found
error.
How can I fix this?