HI René
Finally, I have implemented consumption of RESTFul service...........with your help of your sample example.....
Here is my Code
OLEObject lole_SrvHTTP
Long li_ret, li_number, ll_resultstatus
string ls_word, ls_url, ls_responseheaders
If IsNumber(em_number.Text) Then
li_number = Long(em_number.Text)
Else
Return
End If
ls_url = "http://www.dataaccess.com/webservicesserver/numberconversion.wso/NumberToWords/JSON/debug?ubiNum=" + &
Trim(em_number.Text)
Try
lole_SrvHTTP = Create OLEObject
li_ret = lole_SrvHTTP.ConnectToNewObject("Msxml2.XMLHTTP.4.0")
lole_SrvHTTP.OPEN ("GET" , ls_url,FALSE)
lole_SrvHTTP.Send()
ll_resultstatus = lole_SrvHTTP.status
If ll_resultstatus = 200 Then
st_inword.Text = String (lole_SrvHTTP.ResponseText)
End If
Catch (Exception e)
st_inword.Text = e.Text
End Try
lole_SrvHTTP.DisconnectObject ()
Destroy(lole_SrvHTTP)