P
prash
hello everyone
In my applicaiton I am using vb6 dll to connect to a jboss 4 server and run
a script in the jboss and get the data from jboss server and
contiue work with that data return in the dll
my code looks like this
Dim oXMLdoc As New MSXML.DOMDocument
'// Create a XMLHttpRequest object
Dim oXMLHttpReq As New MSXML.XMLHTTPRequest
Dim oXMLdoc As New MSXML.DOMDocument
'// Create a XMLHttpRequest object
Dim oXMLHttpReq As New MSXML.XMLHTTPRequest
oXMLHttpReq.open "POST", sUrl &
"http://prwelk:8080/b2ejap/pladew/PladewHttpServerGateway.page?USERID=" &
sUser & "&PASSWD=" & sPassword & "&QUERY=1", False, sUser, sPassword
Dim sSqlXml As MSXML.DOMDocument
Set sSqlXml = CreateSelectXML(sStatement)
oXMLHttpReq.send sSqlXml.xml
'// Check success
If oXMLHttpReq.Status = 200 Then '// HTTP_STATUS_OK
If oXMLHttpReq.responseXML.documentElement Is Nothing Then
Set ExecuteCommand = oRowSetReturn //comes here
Else
oRowSetReturn.xml = oXMLHttpReq.responseXML.documentElement.xml
'Set ExecuteCommand = oRowSetReturn
'If oRowSetReturn.ErrorStack.Count > 0 Then
' MsgBox oRowSetReturn.ErrorStack.Item(1).ErrDesc
'End If
End If
Else
'Set ExecuteCommand = oRowSetReturn.ErrorStack.Add(0,
oXMLHttpReq.responseText)
' oRowSetReturn.ErrorStack.Add 0, oXMLHttpReq.responseText
Set ExecuteCommand = oRowSetReturn
End If
i am using windows 2000 sp4 with vb6 sp5
Problem as it appears is that the request headers are not compatible.
Is there any way to set the request headers with the current browser
settings
I need a method to get the browser cookies..
this dll is called from the javacript
i am using IE6
can anybody help me
/prash
message.
In my applicaiton I am using vb6 dll to connect to a jboss 4 server and run
a script in the jboss and get the data from jboss server and
contiue work with that data return in the dll
my code looks like this
Dim oXMLdoc As New MSXML.DOMDocument
'// Create a XMLHttpRequest object
Dim oXMLHttpReq As New MSXML.XMLHTTPRequest
Dim oXMLdoc As New MSXML.DOMDocument
'// Create a XMLHttpRequest object
Dim oXMLHttpReq As New MSXML.XMLHTTPRequest
oXMLHttpReq.open "POST", sUrl &
"http://prwelk:8080/b2ejap/pladew/PladewHttpServerGateway.page?USERID=" &
sUser & "&PASSWD=" & sPassword & "&QUERY=1", False, sUser, sPassword
Dim sSqlXml As MSXML.DOMDocument
Set sSqlXml = CreateSelectXML(sStatement)
oXMLHttpReq.send sSqlXml.xml
'// Check success
If oXMLHttpReq.Status = 200 Then '// HTTP_STATUS_OK
If oXMLHttpReq.responseXML.documentElement Is Nothing Then
Set ExecuteCommand = oRowSetReturn //comes here
Else
oRowSetReturn.xml = oXMLHttpReq.responseXML.documentElement.xml
'Set ExecuteCommand = oRowSetReturn
'If oRowSetReturn.ErrorStack.Count > 0 Then
' MsgBox oRowSetReturn.ErrorStack.Item(1).ErrDesc
'End If
End If
Else
'Set ExecuteCommand = oRowSetReturn.ErrorStack.Add(0,
oXMLHttpReq.responseText)
' oRowSetReturn.ErrorStack.Add 0, oXMLHttpReq.responseText
Set ExecuteCommand = oRowSetReturn
End If
i am using windows 2000 sp4 with vb6 sp5
Problem as it appears is that the request headers are not compatible.
Is there any way to set the request headers with the current browser
settings
I need a method to get the browser cookies..
this dll is called from the javacript
i am using IE6
can anybody help me
/prash
message.