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 / November 2004

Tip: Looking for answers? Try searching our database.

Progress of a async webservice call

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ullbergm - 19 Nov 2004 14:29 GMT
Is there any way to check the progress of a asynchronous webservice call?

I realize that you won't be able to check the data coming back but i was
curious if there was a way to check the bytes transfered or something like
that.

Thanks,
Magnus Ullberg
Dan Rogers - 19 Nov 2004 19:12 GMT
Hi Magnus,

When you say check the progress of an async web service, do you mean a fire
and forget one-way call, or a call you initiate on the client side using a
BeginXXMethod.  I've heard people call both of thes "async" - but the
meaning of Async changes.

Without an interface on a service to check the progress of a prior request
(as opposed to a request that is still ongoing), a fire and forget request
- for example "send_me_goods_via_truck" to order some kind of e-commerce
product, the caller has no way to ask the question.  Thus, progress and
status requests need to be designed into the service.

In the case of the "call it in the background so my client code isn't
frozen waiting for a long call to finish" - e.g. beginXXMethod approach,
no, there is no way to check on the progress.  The reason is that while
there is an open connection between the proxy and service in this case, the
proxy is in "read" mode, and the service has already dispatched the
serialized data to the method.  SOAP doesn't accommodate a status or
progress data stream on this request - as each request gets at most a
single on-connection response.

If your requests of the second type are taking a long time, you are going
to need to look into why the operations are taking a long time to process
on the server side.  Any processing delay of more than a few milliseconds
may be a signal that the work-partitioning in the applicaiton design will
become an issue as the number of concurrent requests is ramped up.

Good luck to you

Dan Rogers
Microsoft Corporation
--------------------
>Thread-Topic: Progress of a async webservice call
>thread-index: AcTORB1XVaBrNRY4R4yErTul1eourg==
[quoted text clipped - 16 lines]
>NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
>Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA06.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08
.phx.gbl!TK2MSFTNGXA03.phx.gbl
>Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservices:26714
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
>
[quoted text clipped - 6 lines]
>Thanks,
>Magnus Ullberg
ullbergm - 19 Nov 2004 19:45 GMT
> Hi Magnus,
>
[quoted text clipped - 12 lines]
> may be a signal that the work-partitioning in the applicaiton design will
> become an issue as the number of concurrent requests is ramped up.

Yes, i'm using a BeginXXX call. That's what i thought, but i figured i'd ask
in case there was something that i had missed.

The timing is due to low bandwidth on the client end and transfering a lot
of information.
Since i can't reduce the size of the data i may just break it up into
multiple small pieces so that i can give more feedback to the user.

Thanks for the quick response.

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.