FUNCTION GetData(tcQuery as String) as string LOCAL loHttp,loXML loHTTP=CREATEOBJECT('Microsoft.XMLHTTP') loHTTP.Open('GET','http://...',.F.) loHTTP.Send() * Directly get an XMLDOM object loXML=loHTTP.ResponseXML * Check for error IF EMPTY(loXML.XML) RETURN loHTTP.ResponseBody ENDIFIf I do this from the client, it'll work. When it is not an XML, I am receiving the error message ok. However, having the same code on a Web Service will make the returned string of loHTTP.ResponseBody to be encrypted. I have to do this to avoid that.
* Check for error IF EMPTY(loXML.XML) RETURN ''+loHTTP.ResponseBody ENDIFWhy is that?