Micro Focus QTP (UFT) Forums

Full Version: Testing webservices example
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I am trying to test an example of webservices that I copied from
https://www.learnqtp.com/web-services-an...ces-addin/
I am getting a syntax error and I dont seem to find it.
Could someone please see what is wrong with this code

Code:
sSOAPRequest = "<?xml version=""1.0"" encoding=""utf-8""?>" & _
"<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">" & _
"<soap:Body>" & _
"<CelsiusToFahrenheit xmlns="http://tempuri.org/">" & _
"<Celsius>25</Celsius>" & _
"</CelsiusToFahrenheit>" & _
"</soap:Body>" & _
"</soap:Envelope>"
Thanks,
Sqadri