Hi..This is my problem. I have 2 servers Server A running on Windows NT and Server B running on Windows 2003. I need to send an XML file from the servers to another upstream server, which shall parse the XML and return data which i shall write to another file and perform certain database operations. My problem is this. My
VB program works perfectly when i run it on Server A(Windows NT) and i get response from the upstream server properly and iam able to write the file and perform db operations. The same code does not work on Windows 2003 server.
Here is the code i have in place(Its
VB)
Set x = CreateObject("MSXML2.DOMDocument")
x.Load (App.Path & "\Request.xml")
Set h = CreateObject("MSXML2.ServerXMLHTTP")
While (Val(DateDiff("s", GetTimeBeforePost, Now)) <= moFinalResponseTime) And h.readyState <> 4
moErrorLogger.LogInformation "Posting the Soap HTTP request...."
On Error Resume Next
GetTimeBeforePostNew = Now
h.Open "POST", sURL, True
h.send x
h.waitForResponse (moResponseTime)
If h.readyState <> 4 Then
'Waits for 10 min
While Val(DateDiff("s", GetTimeBeforePostNew, Now)) <= moResponseTime
Wend
h.abort
End If
Wend
If h.readyState <> 4 Then
moErrorLogger.LogInformation "Server not responding"
Here GetTimeBeforePost,GetTimeBeforePostNew,moResponseT ime are variables and have been assigned values. I am saving the URL in the DB and getting it in sURL. Iam using msxml3 with Service pack 4
I never seem to get a readystate value 4. Its always 1. Any ideas ????
Also do i need IIS to be running on Server B(Windows 2003) and any other configurational settings needed ??
Please help.
Regards