PC Review


Reply
Thread Tools Rate Thread

Asynchronous Web Service

 
 
Scott M.
Guest
Posts: n/a
 
      4th Sep 2008
Am I wrong, or is invoking a web method via a different thread and making an
XmlHttp request both different ways of making asynchronous web requests.

One just uses the Web Service architecture and one uses a proprietary (but
widely implemented) client object, right?


 
Reply With Quote
 
 
 
 
Alvin Bruney [ASP.NET MVP]
Guest
Posts: n/a
 
      5th Sep 2008
Yup. At a high level yes. However, for a closer look, you actually have a
main thread firing a child thread which queues work to a thread pool for the
first scenario. For the second, you have a main thread queuing work to a
thread pool. Subtle difference?!

--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Download OWC Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $15.00
Need a free copy of VSTS 2008 w/ MSDN Premium?
http://msmvps.com/blogs/alvin/Default.aspx
-------------------------------------------------------


"Scott M." <s-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Am I wrong, or is invoking a web method via a different thread and making
> an XmlHttp request both different ways of making asynchronous web
> requests.
>
> One just uses the Web Service architecture and one uses a proprietary (but
> widely implemented) client object, right?
>

 
Reply With Quote
 
Scott M.
Guest
Posts: n/a
 
      5th Sep 2008
Thanks.


"Alvin Bruney [ASP.NET MVP]" <vapor dan using hot male spam filter> wrote in
message news:75C5A71A-D60D-4254-A344-(E-Mail Removed)...
> Yup. At a high level yes. However, for a closer look, you actually have a
> main thread firing a child thread which queues work to a thread pool for
> the first scenario. For the second, you have a main thread queuing work to
> a thread pool. Subtle difference?!
>
> --
>
> Regards,
> Alvin Bruney [MVP ASP.NET]
>
> [Shameless Author plug]
> Download OWC Black Book, 2nd Edition
> Exclusively on www.lulu.com/owc $15.00
> Need a free copy of VSTS 2008 w/ MSDN Premium?
> http://msmvps.com/blogs/alvin/Default.aspx
> -------------------------------------------------------
>
>
> "Scott M." <s-(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Am I wrong, or is invoking a web method via a different thread and making
>> an XmlHttp request both different ways of making asynchronous web
>> requests.
>>
>> One just uses the Web Service architecture and one uses a proprietary
>> (but widely implemented) client object, right?
>>



 
Reply With Quote
 
Scott M.
Guest
Posts: n/a
 
      5th Sep 2008
So, really the XmlHttp object is really just an API for performing HTTP
Post/Get operations in new threads?


"Alvin Bruney [ASP.NET MVP]" <vapor dan using hot male spam filter> wrote in
message news:75C5A71A-D60D-4254-A344-(E-Mail Removed)...
> Yup. At a high level yes. However, for a closer look, you actually have a
> main thread firing a child thread which queues work to a thread pool for
> the first scenario. For the second, you have a main thread queuing work to
> a thread pool. Subtle difference?!
>
> --
>
> Regards,
> Alvin Bruney [MVP ASP.NET]
>
> [Shameless Author plug]
> Download OWC Black Book, 2nd Edition
> Exclusively on www.lulu.com/owc $15.00
> Need a free copy of VSTS 2008 w/ MSDN Premium?
> http://msmvps.com/blogs/alvin/Default.aspx
> -------------------------------------------------------
>
>
> "Scott M." <s-(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Am I wrong, or is invoking a web method via a different thread and making
>> an XmlHttp request both different ways of making asynchronous web
>> requests.
>>
>> One just uses the Web Service architecture and one uses a proprietary
>> (but widely implemented) client object, right?
>>



 
Reply With Quote
 
Alvin Bruney [ASP.NET MVP]
Guest
Posts: n/a
 
      8th Sep 2008
That is how I think of it, the browser couldn't do it cleanly and easily in
a way that would scale (now it can with tabbed browsing support). Recall
before AJAX.NET came about, Microsoft actually had webservice behaviours
(htc files) that used the xmlhttp objects to fire of out of band calls to
the service. All that got rebranded and polished to Ajax.net. But the basic
principle remained the same.

--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Download OWC Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $15.00
Need a free copy of VSTS 2008 w/ MSDN Premium?
http://msmvps.com/blogs/alvin/Default.aspx
-------------------------------------------------------


"Scott M." <s-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> So, really the XmlHttp object is really just an API for performing HTTP
> Post/Get operations in new threads?
>
>
> "Alvin Bruney [ASP.NET MVP]" <vapor dan using hot male spam filter> wrote
> in message news:75C5A71A-D60D-4254-A344-(E-Mail Removed)...
>> Yup. At a high level yes. However, for a closer look, you actually have a
>> main thread firing a child thread which queues work to a thread pool for
>> the first scenario. For the second, you have a main thread queuing work
>> to a thread pool. Subtle difference?!
>>
>> --
>>
>> Regards,
>> Alvin Bruney [MVP ASP.NET]
>>
>> [Shameless Author plug]
>> Download OWC Black Book, 2nd Edition
>> Exclusively on www.lulu.com/owc $15.00
>> Need a free copy of VSTS 2008 w/ MSDN Premium?
>> http://msmvps.com/blogs/alvin/Default.aspx
>> -------------------------------------------------------
>>
>>
>> "Scott M." <s-(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Am I wrong, or is invoking a web method via a different thread and
>>> making an XmlHttp request both different ways of making asynchronous web
>>> requests.
>>>
>>> One just uses the Web Service architecture and one uses a proprietary
>>> (but widely implemented) client object, right?
>>>

>
>

 
Reply With Quote
 
Scott M.
Guest
Posts: n/a
 
      8th Sep 2008
Thank you!


"Alvin Bruney [ASP.NET MVP]" <vapor dan using hot male spam filter> wrote in
message news:B2BCFCF1-F516-4596-9457-(E-Mail Removed)...
> That is how I think of it, the browser couldn't do it cleanly and easily
> in a way that would scale (now it can with tabbed browsing support).
> Recall before AJAX.NET came about, Microsoft actually had webservice
> behaviours (htc files) that used the xmlhttp objects to fire of out of
> band calls to the service. All that got rebranded and polished to
> Ajax.net. But the basic principle remained the same.
>
> --
>
> Regards,
> Alvin Bruney [MVP ASP.NET]
>
> [Shameless Author plug]
> Download OWC Black Book, 2nd Edition
> Exclusively on www.lulu.com/owc $15.00
> Need a free copy of VSTS 2008 w/ MSDN Premium?
> http://msmvps.com/blogs/alvin/Default.aspx
> -------------------------------------------------------
>
>
> "Scott M." <s-(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> So, really the XmlHttp object is really just an API for performing HTTP
>> Post/Get operations in new threads?
>>
>>
>> "Alvin Bruney [ASP.NET MVP]" <vapor dan using hot male spam filter> wrote
>> in message news:75C5A71A-D60D-4254-A344-(E-Mail Removed)...
>>> Yup. At a high level yes. However, for a closer look, you actually have
>>> a main thread firing a child thread which queues work to a thread pool
>>> for the first scenario. For the second, you have a main thread queuing
>>> work to a thread pool. Subtle difference?!
>>>
>>> --
>>>
>>> Regards,
>>> Alvin Bruney [MVP ASP.NET]
>>>
>>> [Shameless Author plug]
>>> Download OWC Black Book, 2nd Edition
>>> Exclusively on www.lulu.com/owc $15.00
>>> Need a free copy of VSTS 2008 w/ MSDN Premium?
>>> http://msmvps.com/blogs/alvin/Default.aspx
>>> -------------------------------------------------------
>>>
>>>
>>> "Scott M." <s-(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> Am I wrong, or is invoking a web method via a different thread and
>>>> making an XmlHttp request both different ways of making asynchronous
>>>> web requests.
>>>>
>>>> One just uses the Web Service architecture and one uses a proprietary
>>>> (but widely implemented) client object, right?
>>>>

>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Asynchronous web service not getting kicked of. OldMacDonald Microsoft C# .NET 0 7th Feb 2006 02:18 AM
ASP.Net with Asynchronous Web Service calls =?Utf-8?B?VHJvdHNreQ==?= Microsoft ASP .NET 8 3rd Jun 2004 11:06 PM
Asynchronous web service Fritz Microsoft C# .NET 0 29th Apr 2004 10:40 AM
Asynchronous web service Marty McDonald Microsoft C# .NET 1 19th Dec 2003 03:54 AM
Asynchronous Web Service Calls with asp.net??? zg_yuan Microsoft ASP .NET 0 25th Aug 2003 06:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:39 PM.