This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Microsoft XML > August 2005 > XMLHTTP send not posting to servlet when aSync=true
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
XMLHTTP send not posting to servlet when aSync=true
|
|
| AntB719 2005-08-26, 7:51 am |
| 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
| |
|
| Can you elaborate more on your problem?
1. How do you know that the remote method is not called?
2. What is the last readyState number in your call back procedure, if any?
--
Pohwan Han. Seoul. Have a nice day.
"AntB719" <AntB719@discussions.microsoft.com> wrote in message
news:E028981A-3581-4F00-B825-5DD55E56AFAC@microsoft.com...
> 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
>
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|