Hi,
I’m facing problem to receive unread Messages through API, I have sent 2 messages from my cell and received that message through API after 20 minutes, then send more 2 messages from my cell and received these that messages after 30 minutes I thought might be server is responding slow but now I’m unable to receive more messages either I have sent few more messages from my cell for testing purpose .
Here is my code could you help me out… What s wrong in my code or command
URLAddress = “http://192.168.71.39:81/recvmsg?user=admin&passwd=admin”
oHTTP = CREATEOBJECT(‘MSXML2.ServerXMLHTTP’)
oHTTP.Open(“GET”, URLAddress, .f.)
oHTTP.send
IF oHttp.status = 200
CheckMSG = oHTTP.Responsexml.SelectSingleNode(“//Unread_Available”).text
IF VAL(CheckMSG) =<0
MESSAGEBOX(“No New Messages are available .”,0,”System Message”)
RETURN .f.
ELSE
cXML = oHttp.responseXML.xml
STRTOFILE(cXML,”SMSRec.xml”)
XMLTOCURSOR(“SMSRec.xml”,”SMSRec”,512)
ENDIF
ELSE
MESSAGEBOX (” SMS Server is Not Responding.”,0,”System Message”)
ENDIF
Thanks & Regards