Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / May 2005

Tip: Looking for answers? Try searching our database.

Webservice and Compact Framework

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike Mc - 30 Jan 2005 02:03 GMT
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!
Roland - 30 Jan 2005 08:57 GMT
Use a worker thread with a below-normal priority
Mike Mc - 30 Jan 2005 18:17 GMT
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?

> Use a worker thread with a below-normal priority
Roland - 01 Feb 2005 20:01 GMT
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.
Kalgan - 26 May 2005 15:22 GMT
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

> *I am running a .net application on a PPC 2003 device that passes
> large
[quoted text clipped - 14 lines]
>
> Thank you for your help! *

--
Kalgan


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.