473,508 Members | 2,247 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Question for Web Service Buffs

I'm trying to understand how async callbacks are possible with web services
since they use HTTP (which is stateless) for their communication protocol.
What happens under the covers to allow services to perform callbacks when
they're complete?

Thanks for your help.
Nov 23 '05 #1
13 1317
Web Developer wrote:
I'm trying to understand how async callbacks are possible with web services
since they use HTTP (which is stateless) for their communication protocol.
What happens under the covers to allow services to perform callbacks when
they're complete?

Thanks for your help.


What allows a web page to be sent back to your browser when you enter a
URL in the location?

Nov 23 '05 #2
Web Developer wrote:
I'm trying to understand how async callbacks are possible with web services
since they use HTTP (which is stateless) for their communication protocol.
What happens under the covers to allow services to perform callbacks when
they're complete?

Thanks for your help.


What allows a web page to be sent back to your browser when you enter a
URL in the location?

Nov 23 '05 #3
Responding to a question with a question doesn't quite answer it. Can you
provide any low-level details about how it works?

It seems like the client must be opening a TCP connection (on port 80) that
stays open. Is that right? If so, in the async communication, how does the
web server know when to close the connection?

Thanks.

"John Bailo" wrote:
Web Developer wrote:
I'm trying to understand how async callbacks are possible with web services
since they use HTTP (which is stateless) for their communication protocol.
What happens under the covers to allow services to perform callbacks when
they're complete?

Thanks for your help.


What allows a web page to be sent back to your browser when you enter a
URL in the location?

Nov 23 '05 #4
Responding to a question with a question doesn't quite answer it. Can you
provide any low-level details about how it works?

It seems like the client must be opening a TCP connection (on port 80) that
stays open. Is that right? If so, in the async communication, how does the
web server know when to close the connection?

Thanks.

"John Bailo" wrote:
Web Developer wrote:
I'm trying to understand how async callbacks are possible with web services
since they use HTTP (which is stateless) for their communication protocol.
What happens under the covers to allow services to perform callbacks when
they're complete?

Thanks for your help.


What allows a web page to be sent back to your browser when you enter a
URL in the location?

Nov 23 '05 #5
Web Developer wrote:
Responding to a question with a question doesn't quite answer it. Can you
provide any low-level details about how it works?

It seems like the client must be opening a TCP connection (on port 80) that
stays open. Is that right?
You just said it was /stateless/.
If so, in the async communication, how does the
web server know when to close the connection?

Thanks.

"John Bailo" wrote:

Web Developer wrote:
I'm trying to understand how async callbacks are possible with web services
since they use HTTP (which is stateless) for their communication protocol.
What happens under the covers to allow services to perform callbacks when
they're complete?

Thanks for your help.


What allows a web page to be sent back to your browser when you enter a
URL in the location?

Nov 23 '05 #6
Web Developer wrote:
Responding to a question with a question doesn't quite answer it. Can you
provide any low-level details about how it works?

It seems like the client must be opening a TCP connection (on port 80) that
stays open. Is that right?
You just said it was /stateless/.
If so, in the async communication, how does the
web server know when to close the connection?

Thanks.

"John Bailo" wrote:

Web Developer wrote:
I'm trying to understand how async callbacks are possible with web services
since they use HTTP (which is stateless) for their communication protocol.
What happens under the covers to allow services to perform callbacks when
they're complete?

Thanks for your help.


What allows a web page to be sent back to your browser when you enter a
URL in the location?

Nov 23 '05 #7
John,
I have no idea what your statement means, but it's not an answer.

Can anyone else describe what happens when an async callback is made from a
web service?

Thanks.

Nov 23 '05 #8
John,
I have no idea what your statement means, but it's not an answer.

Can anyone else describe what happens when an async callback is made from a
web service?

Thanks.

Nov 23 '05 #9
If I'm not mistaken, an async call to a web service all happens on the client
side - basically a thread is spawned on the client side to invoke the web
service via the thread pool and when the thread completes the web service
call, it invokes you callback.
HTH
--
Dave Stienessen

"Web Developer" wrote:
John,
I have no idea what your statement means, but it's not an answer.

Can anyone else describe what happens when an async callback is made from a
web service?

Thanks.

Nov 23 '05 #10
If I'm not mistaken, an async call to a web service all happens on the client
side - basically a thread is spawned on the client side to invoke the web
service via the thread pool and when the thread completes the web service
call, it invokes you callback.
HTH
--
Dave Stienessen

"Web Developer" wrote:
John,
I have no idea what your statement means, but it's not an answer.

Can anyone else describe what happens when an async callback is made from a
web service?

Thanks.

Nov 23 '05 #11
Thanks Dave. That makes sense.

Nov 23 '05 #12
Thanks Dave. That makes sense.

Nov 23 '05 #13
Callbacks to the client from a web service (as in, open a connection to
my web browser when you get finished) are not possible/practical.
Usually the way long running async operations are handled is to have
the client check back at a short interval (using the META refresh tag
for example). Each checkback is a separate, stateless, http request. If
they happen to check back after you've finished servicing their
request, display the results, which you have persisted in the meantime
in session state or someplace like that. Check out the "Asynchronous
Wait State Pattern in ASP.NET" article on MSDN for more info and sample
code.

Chris Bova

Nov 23 '05 #14

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

Similar topics

1
1568
by: Liza | last post by:
Hi guys, i'm trying to build a web service....... is there such thing as polymorphism in web services? i mean could i have two web services of the same name but different arguments such that i...
5
1810
by: Nicholas Then | last post by:
I am writing an application that uses Remoting that is hosted within IIS. We have an SSL cert enabled on the server. We are using windows authentication on this remoting service. Everything...
2
1756
by: John A | last post by:
I have a Web Service that I am reponsible for that we use for data integration purposes. Recently I have been tasked with sending some of this data to a third party. Because they need to receive...
2
1226
by: et | last post by:
I am new to asp.net. I am writing a program that will revolve around an extensive client database, and wonder what the best way to design the program is, using classes. I have about 10 different...
7
3081
by: deko | last post by:
I'm trying to finalize a windows service design any would appreciate any comments - I'm new to windows services. Essentially my UI app relies on a service to schedule IO tasks. The service does...
5
606
by: Tom | last post by:
Using multiple System.Timers.Timer objects in a Windows Service for performing multi-thread activities in a periodic fashion. Timers are AutoReset=false, to only have a single timer execution...
0
1272
by: Jean | last post by:
Hi, I have a question about logins and sql server express and an ASP.NET aplication. I put this question in sql server newsgroup, but without real answer sofar. I created a login 'Network...
2
2490
by: astroboiii | last post by:
New to the whole xml thing and finding w3schools to be an excellent resource. Now down to my question: I have several xml files I need to parse through and grab relevant information from and...
16
2386
by: =?Utf-8?B?U3RldmUgQmFya2Vy?= | last post by:
WCF Question Hi guys, I’m pretty new to WCF, and have a basic question about how it works. I’m trying to use WCF to write an “SOA-system”, and am having a few problems. The...
0
7129
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7333
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
7398
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7061
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
7502
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
4716
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3208
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
428
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.