Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XML
data.xmlanalysis
mappoint.webservice
msf
msxml-webrelease
netmyservices.sdk
passport.sdk
soap
soapsdk
uddi.general
uddi.programming
uddi.specification
xml
xmlsqlwebrelease
xsl
  
 
date: Fri, 18 Jul 2008 05:47:03 -0700,    group: microsoft.public.xml.soap        back       


Please Help.. HTTP Send Issues   
Hi,

I am developing an application using embedded Visual C++ running on
Psion WP2 (Win CE 5.0) device. I am using IXMLHTTPRequest class to
send some HTTP validation requests from a scanned bar code data to be
validated by a server via wireless. My code works fine 90% of the
situations, but I run into problems some times when transiting from
online(wireless in range) to offline(wireless out of range) modes. I
have the following questions regarding the send method of this class.

1) I have never been able to use "Send" by "Asynchronous" method.
According to the documentation, the send method is synchronous or
asynchronous, depending on the value of the bAsync parameter in the
open method call. If open is called with bAsync = False, this call
does not return until the entire response is received or the protocol
stack times out. If open is called with bAsync = True, this call
returns immediately. However, by setting the bAsync = True, the
readyState never advances from "LOADING" state to further up. Has any
one, got the async transmission working and if so, can you please send
me a sample?

2) As the Async method does not work, I wanted to use timeout settings
on a sync method. The only method that was available was to do
something like this...

_bstr_t timeout = L"5000";
request->setRequestHeader(_T("Timeout"), timeout);

However, this did not work either. Is there any other way of setting
the time out on a synchronous HTTP transfer?

3) As I could not achieve 1 or 2 above, I decided to have my own
thread to send the data. If the thread did not respond after a
particular time, then I kill the thread. This works ,most of the
times. However, at times, I am observing that the stack is left in an
unclean state, so no further data is being sent. The readystate never
advances from "LOADING" to further up. Is there some way to clean up
the HTTP protocal stack?

Any help in this regard would be higly appreciated, and I look forward
to some answers to my problems.

Cheers,
Sandhya K Sringar
ssringar@erggroup.com
date: Fri, 18 Jul 2008 05:47:03 -0700   author:   Sandhya

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us