Discussion:
XMLHTTP send not posting to servlet when aSync=true
(too old to reply)
AntB719
2005-08-25 11:24:02 UTC
Permalink
Hi,

I'm using MSXML2.XMLHTTP ActiveX object to post an xml string to a servlet
from an Excel add-in.
This is working in all but one case.
The problem I have is that one client's request is not being posted, i.e.
the doPost is not being called on the servlet. It is working for other
clients however.

Here's the VBA:

Dim Req As New MSXML2.XMLHTTP
Req.Open bstrMethod:="POST", bstrUrl:=sUploadServlet, varAsync:=True,
bstrUser:=uname, bstrPassword:=pword
Req.Send sXML

Observations:
* The post works if I make the call synchronous (i.e. Excel waits for the
response)
* The post works if I don't send the xml string
* There are no errors raised in the VBA above

The servlet container is Weblogic running on Solaris with java 1.3, the
client VBA runs in Excel 2000, IE is version 6 SP2.

Thanks,
Antony
novice in .net
2006-12-19 19:00:19 UTC
Permalink
Post by AntB719
Hi,
I'm using MSXML2.XMLHTTP ActiveX object to post an xml string to a servlet
from an Excel add-in.
This is working in all but one case.
The problem I have is that one client's request is not being posted, i.e.
the doPost is not being called on the servlet. It is working for other
clients however.
Dim Req As New MSXML2.XMLHTTP
Req.Open bstrMethod:="POST", bstrUrl:=sUploadServlet, varAsync:=True,
bstrUser:=uname, bstrPassword:=pword
Req.Send sXML
* The post works if I make the call synchronous (i.e. Excel waits for the
response)
* The post works if I don't send the xml string
* There are no errors raised in the VBA above
The servlet container is Weblogic running on Solaris with java 1.3, the
client VBA runs in Excel 2000, IE is version 6 SP2.
Thanks,
Antony
I had the same problem and have found a solution
Refer
http://www.dailydoseofexcel.com/archives/2006/10/09/async-xmlhttp-calls/

That should help,
Novice in .NET

BizTalk Utilities - Frustration free BizTalk Adapters
http://www.topxml.com/biztalkutilities

Loading...