Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Web Service Events?

Reply
Thread Tools

Web Service Events?

 
 
Timothy V
Guest
Posts: n/a
 
      06-28-2006
Hi,
I'm new to web services, and I'd like to know if they (web services) have
the ability to have events where clients (for example a windows client) can
register to its event?

In other words, is it possible for a windows client to subscribe to a web
service event? So that if some data is updated on the web service, it can
inform the windows client.

Thanks in advance,

Tim.


 
Reply With Quote
 
 
 
 
Scott M.
Guest
Posts: n/a
 
      06-29-2006
> Web service is nothing more than sending a piece of data to a remote
> machine and getting something in response, if at all.


No, that's not true at all. A WebService is a remote procedure call via
http and soap. The call and the response are made in XML. In order for a
client to know what there is to call and how to call it, a standardized XML
document (the WSDL) describes the service.

Simple data exchange (even if done with xml) is not a web service.


>
> Not sure but you may want to have a look at Web Service Extensions
> (Extensions... not Enhancements, but a part of Enhancements).
>
> --
> Happy Hacking,
> Gaurav Vaish | http://www.mastergaurav.org
> http://www.edujini.in | http://webservices.edujini.in
> -------------------
>
>
> "Timothy V" <> wrote in message
> news:...
>> Hi,
>> I'm new to web services, and I'd like to know if they (web services) have
>> the ability to have events where clients (for example a windows client)
>> can register to its event?
>>
>> In other words, is it possible for a windows client to subscribe to a web
>> service event? So that if some data is updated on the web service, it can
>> inform the windows client.
>>
>> Thanks in advance,
>>
>> Tim.
>>

>
>



 
Reply With Quote
 
 
 
 
Scott M.
Guest
Posts: n/a
 
      06-29-2006
A WebService is not a continuously running piece of code. So, your basic
question is not really valid. No data would be updated "on the web
service". Data in a data store could be updated, but the web service
(remember: not contiually running), would have to be invoked periodically to
query the data and see if any changes have been made.

You could certainly build a client that periodically calls the web service,
but the service isn't the data, so if the data changes, the service is
ignorant of that.


"Timothy V" <> wrote in message
news:...
> Hi,
> I'm new to web services, and I'd like to know if they (web services) have
> the ability to have events where clients (for example a windows client)
> can register to its event?
>
> In other words, is it possible for a windows client to subscribe to a web
> service event? So that if some data is updated on the web service, it can
> inform the windows client.
>
> Thanks in advance,
>
> Tim.
>



 
Reply With Quote
 
Timothy V
Guest
Posts: n/a
 
      06-29-2006
So you are saying that if I want to do what I proposed, I'd have to poll the
web service?

As an example (keep in mind my limited knowledge of web services), I wanted
the web service to subscribe to a FieldChanged event, so that once that
field changed, the web service would be notified, also firing an event of
its own, which the client would have subscribed to, receiving that that data
from the web service.


"Scott M." <s-> wrote in message
news:...
>A WebService is not a continuously running piece of code. So, your basic
>question is not really valid. No data would be updated "on the web
>service". Data in a data store could be updated, but the web service
>(remember: not contiually running), would have to be invoked periodically
>to query the data and see if any changes have been made.
>
> You could certainly build a client that periodically calls the web
> service, but the service isn't the data, so if the data changes, the
> service is ignorant of that.
>
>
> "Timothy V" <> wrote in message
> news:...
>> Hi,
>> I'm new to web services, and I'd like to know if they (web services) have
>> the ability to have events where clients (for example a windows client)
>> can register to its event?
>>
>> In other words, is it possible for a windows client to subscribe to a web
>> service event? So that if some data is updated on the web service, it can
>> inform the windows client.
>>
>> Thanks in advance,
>>
>> Tim.
>>

>
>



 
Reply With Quote
 
Scott M.
Guest
Posts: n/a
 
      06-30-2006

> So you are saying that if I want to do what I proposed, I'd have to poll
> the
> web service?


Yes.


 
Reply With Quote
 
Scott M.
Guest
Posts: n/a
 
      08-28-2006

> Point Number One: Web Services may or may not require SOAP and WSDL. I may
> be wrong.


Yes, you are wrong. The W3C standard that describes a web service includes
SOAP and WSDL's.

> But then I think binary web services are also a possibility. It's just
> that working with Web Service using SOAP over HTTP is the most common way
> of working with web services... Correct me if I am wrong.


Sorry, wrong again. The binary data you speak of must be serialized into
XML and transmitted over HTTP (using SOAP and WSDL's). If you are
communicating in any other way, you are not using Web Services. If you
think about it, all computer communication is binary at the lowest possible
level. That doesn't make all communications web services.

> Also, I was - yes - technically wrong in saying about 'simple data
> exchange'. But then, I am kind of absolutely correct also.


I don't see how anything you've said is correct when describing Web
Services.

> Again, it's just that when you talk about WSDL -- it's just that it is the
> de-facto standard for the format for information interchange using Web
> Services.


Not the de-facto standard, THE standard (http://www.w3.org/TR/wsdl).

> Again... correct me if I am wrong.


Web Services are standardized by the W3C. What you describe may very well
work for data exchange, but (as I've said) data exchange is not the
definition of a Web Service. To use Web Services, you must make
standardized XML calls (that adhere to the WSDL) over HTTP and SOAP. The
call (request) is for some remote procedure to be processed (not just data
to be sent). The response comes back as XML over HTTP and SOAP according
to what the WSDL contract indicates.


 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Does timer in Web Service Global.asax block my Web Service from processing web-site requests? Leo Violette ASP .Net Web Services 0 04-17-2009 12:39 AM
'web service call failed: 500' using ajax hovermenu and web service Not Me ASP .Net 1 06-05-2007 03:09 PM
InvocationTargetException when calling "new Service()" in Axis web service to call another web service Michael Averstegge Java 0 01-10-2006 11:05 PM
Calling a Web Service using Axis, from within an Axis Web Service running under Tomcat hocho888 Java 1 04-29-2005 08:26 PM
Web Service that calls an external Web Service Isaias Formacio Serna ASP .Net Security 5 02-02-2004 07:38 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57