473,396 Members | 2,129 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Webservice and Compact Framework

I am running a .net application on a PPC 2003 device that passes large
amounts of data to/from a .Net webservice. Once the data is passed to the
webservice we need to spin through all of the records looking for changes and
the response time to the mobile device is prohibative. What I would like to
do is pass the data to the webservice, verify that the data is good, send a
positive response back to my calling application, and then process the data.

Does anybody know how I would do this? It seems like this should be pretty
straightforward.

Thank you for your help!
Nov 23 '05 #1
5 2429
Use a worker thread with a below-normal priority

Nov 23 '05 #2
Thanks for the reply -- but I am not sure what you mean. If I start the
worker thread to do the heavy lifting -- will that not be closed once the
main thread is closed due to the return to my consumer?

"Roland" wrote:
Use a worker thread with a below-normal priority

Nov 23 '05 #3
The main (GUI) thread checks the worker thread to see if it has
finished. This can be done be setting a flag in the worker thread, a
callback function, raising an event, etc. The main thread simply blocks
the user from exiting the application as long as the worker thread is
doing its thing. Of course, the user can cancel the job. The main loop
in teh worker thread constantly looks at the value of a flag (like
Stop). If the value is false, it continues, if not, it breaks from the
loop.

This means that you cannot send or receive the 'large amounts of data'
in one go. Instead, break it up in smaller pieces Use async calls to
WebRequest to do the receiving. For some sample code, see RSS Bandit's
source code. The FotoVision example on MSDN shows how to upload photo's
using a WS.

Sending a message back from the Web Service is to my knowledge
impossible, unless you are calling a WS from a WS and provide a
trackback URL in the original call.

Anyway. What you can do is query the WS with a certain interval to see
if the 'data is good'. In order to do this, the WS needs to return a
string that uniquely identifies the original call, say 'guid'. Then, in
a Timer Click event, you simple call WS.DataIsGood(guid)
Hope this helps.

Nov 23 '05 #4

Hi Mike,
I was going throug all the articles regarding webservices. Cam
through your question. I have a similar kind or job to do and would
really appreciate any help from you.

My webservice is going to receive an xml file as input and then i
validate that file and send back a response saying its good/bad ..
can u shed some light on the procedure to do this..
thanks
Mike Mc wrote:
*I am running a .net application on a PPC 2003 device that passes
large
amounts of data to/from a .Net webservice. Once the data is passed
to the
webservice we need to spin through all of the records looking for
changes and
the response time to the mobile device is prohibative. What I would
like to
do is pass the data to the webservice, verify that the data is good,
send a
positive response back to my calling application, and then process
the data.

Does anybody know how I would do this? It seems like this should be
pretty
straightforward.

Thank you for your help! *


--
Kalgan
------------------------------------------------------------------------
Posted via http://www.mcse.ms
------------------------------------------------------------------------
View this thread: http://www.mcse.ms/message1387136.html

Nov 23 '05 #5

Hi Mike,
I was going throug all the articles regarding webservices. Cam
through your question. I have a similar kind or job to do and would
really appreciate any help from you.

My webservice is going to receive an xml file as input and then i
validate that file and send back a response saying its good/bad ..
can u shed some light on the procedure to do this..
thanks
Mike Mc wrote:
*I am running a .net application on a PPC 2003 device that passes
large
amounts of data to/from a .Net webservice. Once the data is passed
to the
webservice we need to spin through all of the records looking for
changes and
the response time to the mobile device is prohibative. What I would
like to
do is pass the data to the webservice, verify that the data is good,
send a
positive response back to my calling application, and then process
the data.

Does anybody know how I would do this? It seems like this should be
pretty
straightforward.

Thank you for your help! *


--
Kalgan
------------------------------------------------------------------------
Posted via http://www.mcse.ms
------------------------------------------------------------------------
View this thread: http://www.mcse.ms/message1387136.html

Nov 23 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Davie | last post by:
I want to authorise a user of a web service by using the AuthHeaderValue for some reason I keep getting a null reference exception when I try to run the following code: It seems to work fine on a...
5
by: Carlos Hernandez | last post by:
We have created a webservice, and in out test server everyting works fine, but when we want to move it to our production server, we have ti change IP in the webreference properties, and rebuild...
5
by: Topper | last post by:
Hello! How to create WebService without IIS and ASP.NET? For example, create WebService for smart device client without ASP.NET/IIS techology. Without ASP.NET and IIS - is a key question!! ...
8
by: Topper | last post by:
Hello. I have simple web folders structure: -ROOT - BIN WebService.dll WebService.asmx I need to use my WebService.dll not in bin folder - for example, in ROOT. How do i this? How can i do...
1
by: smart | last post by:
While getting the dataset using webservice, the following error occur: An unhandled exception of type 'System.PlatformNotSupportedException' occurred in mscorlib.dlls Additional information:...
5
by: AliR | last post by:
Hi Everyone, I have a Visual C++ MFC program, and I am trying to use a webservice written in C#. When I add the webservice to my project using Add Web Reference the sproxy compiler complains...
5
by: bob | last post by:
Hi Using 2003 - targeting the compact framework (c#), but would like to do most development using the full.net (manually leaving out stuff not in the compact framework). Q. Trying to find a...
5
by: Kay-Christian Wessel | last post by:
I'm trying to use a certificate on my pocket PC device to access a WebService using VS2003/VS2005. I've been able to read the certificate of my Certificate Store, but I don't know how to use it...
1
by: Peter Morris | last post by:
Hi all I would like my Pocket PC application (.NET Compact Framwork V2) to talk to a webservice, but the only port open on the server is 21 where an FTP server is sitting. I was wondering...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.