Code Test!

CREATINGWORLDS

New member
Joined
May 22, 2007
Messages
3
Programming Experience
5-10
Somebody, anybody, please! Help! My company has a large application that verifies usernames via an XML gateway. The xml gateway is hosted by another company, and recently it stopped working. I need someone outside of my network to test the following code to see if they get the same "Object reference not set to an instance of an object" error...

Try
Dim msXML As New MSXML2.DOMDocument
msXML.setProperty("ServerHTTPRequest", True)
msXML.async = True
msXML.load("https://www.sealysales.com/security/validate/2-0-0/release/" & _
"default.asp?uvUsername=wendyomally&uvPassword=123")

Dim strRet As String = msXML.getElementsByTagName("Code").item(0).text
MsgBox(strRet)
Catch ex As Exception
MsgBox(ex.Message)
End Try

HELP!
 
i'm not sure I would perform this op asynchronously and then immediately try to get a response. Wait until the relevant event has fired that indicated data has been received, or perform the op syncronously
 
Back
Top