I have an ASP.NET page hosted on IIS 7 which used to work fine, making an Ajax call to a remote SMS gateway which parses a string, sends an SMS message and returns a status code. The ASP page no longer works and it appears the issue lies with creating the object within my ASP page. The code in question looks similar to this...
Dim MobNum As String
Dim strHTML As String
Dim statusresponse As String
MobNum = "+447977123456"
objXmlHttp = Server.CreateObject("Msxml2.ServerXMLHTTP")
strHTML = "https://www.mysms.com/gateway/xyz.aspx?" & _
"&destination=" & MobNum & _
"&message=Foo" & _
' resolve, connect, send, receive - in milliseconds
objXmlHttp.setTimeouts(10000, 10000, 10000, 10000)
objXmlHttp.open("GET", strHTML, False)
statusresponse = objXmlHttp.ResponseText
objXmlHttp = Nothing
Loading my ASP page in the browser, I get an error after around 10 secs stating "A connection with the server could not be established", highlighting the line objXmlHttp.send().
I have executed the call to the remote server simply placing the Ajax string in my browser and it works fine, the SMS is sent and I get the response code. I have also set up a Stored Procedure to execute the same Ajax call and it also works fine, sending the SMS and returning the response code. So, the issue seems to lie somewhere within my ASP page/IIS instance, and specifically with Server.CreateObject("Msxml