Hi,
please find below a working example of a MSXML2 WS client.
Just copy the code into a button a run it.
Cheers,
Marco
String ls_response
String ls_url = "http://www.webservicex.net/globalweather.asmx/GetCitiesByCountry?CountryName=SPAIN"
String ls_status_text
Long ll_status_code
Integer li_rc
oleobject l_xmlhttp
l_xmlhttp = CREATE oleobject
li_rc = l_xmlhttp.ConnectToNewObject("MSXML2.XMLHTTP")
IF li_rc < 0 THEN
MessageBox("ConnectToNewObject", "Error " + String(li_rc), StopSign!)
Return
End If
l_xmlhttp.Open("GET", ls_url, False)
l_xmlhttp.send("")
ls_status_text = l_xmlhttp.StatusText
ll_status_code = l_xmlhttp.Status // If ll_status_code >= 300 there is an HTTPS POST Error
ls_response = String(l_xmlhttp.ResponseText)
l_xmlhttp.DisconnectObject()
Clipboard(ls_response)
MessageBox("WS response", "WS response is in the clipboard. Paste it into notepad")