470,815 Members | 1,310 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

Is it possible for web service to send random notification to web service consumer?

I am a newbie for web servcie and want to write a web service which
monitors the certain field in the database. Once it exceeds the
certain value, web service will send out notification to web service
consumer who will take action on it.

Is it possible? If yes, how to implement? If possible, please provide
me the link.

Thanks lot.

Michael
Nov 21 '05 #1
12 2123
No. The protocol is based on the consumer making a request to the service,
therefore your consumer must periodically poll the service.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP

"Michael Fan" <yi******@hotmail.com> wrote in message
news:79**************************@posting.google.c om...
I am a newbie for web servcie and want to write a web service which
monitors the certain field in the database. Once it exceeds the
certain value, web service will send out notification to web service
consumer who will take action on it.

Is it possible? If yes, how to implement? If possible, please provide
me the link.

Thanks lot.

Michael

Nov 21 '05 #2

Hi Michael

I only ask this because you say you are a newbie. When you say consumer, do
you mean a system consumer?
If you just wanted to notify an indivdual then you could easily send an
email?

Richard

Nov 21 '05 #3
Hi,
For your requirement, you can write a windows service which will monitor the
database and send out notifications.

Webservices will be created when you want to share your data,
procedures/alogorithms/application as a service to other departments,
customers and suppliers.

Regards,
R.Balaji
"Michael Fan" <yi******@hotmail.com> wrote in message
news:79**************************@posting.google.c om...
I am a newbie for web servcie and want to write a web service which
monitors the certain field in the database. Once it exceeds the
certain value, web service will send out notification to web service
consumer who will take action on it.

Is it possible? If yes, how to implement? If possible, please provide
me the link.

Thanks lot.

Michael

Nov 21 '05 #4
Thanks John,

Is SOA(Service Oriented Achitecture) helpful for solving this issue? Thanks,

Michael

"John Timney \(Microsoft MVP\)" <ti*****@despammed.com> wrote in message news:<#C**************@TK2MSFTNGP09.phx.gbl>...
No. The protocol is based on the consumer making a request to the service,
therefore your consumer must periodically poll the service.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP

"Michael Fan" <yi******@hotmail.com> wrote in message
news:79**************************@posting.google.c om...
I am a newbie for web servcie and want to write a web service which
monitors the certain field in the database. Once it exceeds the
certain value, web service will send out notification to web service
consumer who will take action on it.

Is it possible? If yes, how to implement? If possible, please provide
me the link.

Thanks lot.

Michael

Nov 21 '05 #5
Unfortunatly not - by its very natue a web client/web srevice request is
basically SOA.

Your problem is one of protocol - you make a request, the service responds -
the request is ended. Your client needs to make another request. Its not
the fault of the client - its basically how web servers work.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Michael Fan" <yi******@hotmail.com> wrote in message
news:79**************************@posting.google.c om...
Thanks John,

Is SOA(Service Oriented Achitecture) helpful for solving this issue? Thanks,
Michael

"John Timney \(Microsoft MVP\)" <ti*****@despammed.com> wrote in message

news:<#C**************@TK2MSFTNGP09.phx.gbl>...
No. The protocol is based on the consumer making a request to the service, therefore your consumer must periodically poll the service.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP

"Michael Fan" <yi******@hotmail.com> wrote in message
news:79**************************@posting.google.c om...
I am a newbie for web servcie and want to write a web service which
monitors the certain field in the database. Once it exceeds the
certain value, web service will send out notification to web service
consumer who will take action on it.

Is it possible? If yes, how to implement? If possible, please provide
me the link.

Thanks lot.

Michael

Nov 21 '05 #6
You can take a look at remoting. With it you can fire events to the
connected client(s).

Sunny

In article <79**************************@posting.google.com >,
yi******@hotmail.com says...
Thanks John,

Is SOA(Service Oriented Achitecture) helpful for solving this issue? Thanks,

Michael

"John Timney \(Microsoft MVP\)" <ti*****@despammed.com> wrote in message news:<#C**************@TK2MSFTNGP09.phx.gbl>...
No. The protocol is based on the consumer making a request to the service,
therefore your consumer must periodically poll the service.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP

"Michael Fan" <yi******@hotmail.com> wrote in message
news:79**************************@posting.google.c om...
I am a newbie for web servcie and want to write a web service which
monitors the certain field in the database. Once it exceeds the
certain value, web service will send out notification to web service
consumer who will take action on it.

Is it possible? If yes, how to implement? If possible, please provide
me the link.

Thanks lot.

Michael

Nov 21 '05 #7
Thanks John,

I read some documents about WSE(web service enhancement). Do you think
that might be useful for my issue?

Thanks,

Michael

"John Timney \(Microsoft MVP\)" <ti*****@despammed.com> wrote in message news:<eZ**************@TK2MSFTNGP11.phx.gbl>...
Unfortunatly not - by its very natue a web client/web srevice request is
basically SOA.

Your problem is one of protocol - you make a request, the service responds -
the request is ended. Your client needs to make another request. Its not
the fault of the client - its basically how web servers work.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP

Nov 21 '05 #8
I'm not really up on WSE2, but you might have read something about abstract
patterns which alludes somewhere to it doing a server push. I think what it
actually is is a stream of SOAP requests that the client sends - rather than
just one called a SequenceAcknowledgement chain. This topic is definately
one for the webservices public group, your heading into advanced territory
and I've not read up on WSE2 for a few months..

However, as someone else has suggested there is nothing to stop you using
remoting which could give you that type of connectivity. As it is your
limited by the HTTP protocol which is a disconnected protocol.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Michael Fan" <yi******@hotmail.com> wrote in message
news:79**************************@posting.google.c om...
Thanks John,

I read some documents about WSE(web service enhancement). Do you think
that might be useful for my issue?

Thanks,

Michael

"John Timney \(Microsoft MVP\)" <ti*****@despammed.com> wrote in message

news:<eZ**************@TK2MSFTNGP11.phx.gbl>...
Unfortunatly not - by its very natue a web client/web srevice request is
basically SOA.

Your problem is one of protocol - you make a request, the service responds - the request is ended. Your client needs to make another request. Its not the fault of the client - its basically how web servers work.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP

Nov 21 '05 #9
Clear enough. Thanks John and everyone contributed your thougths for
this issue. Have a good day.

Michael

"John Timney \(Microsoft MVP\)" <ti*****@despammed.com> wrote in message news:<O2**************@TK2MSFTNGP09.phx.gbl>...
I'm not really up on WSE2, but you might have read something about abstract
patterns which alludes somewhere to it doing a server push. I think what it
actually is is a stream of SOAP requests that the client sends - rather than
just one called a SequenceAcknowledgement chain. This topic is definately
one for the webservices public group, your heading into advanced territory
and I've not read up on WSE2 for a few months..

However, as someone else has suggested there is nothing to stop you using
remoting which could give you that type of connectivity. As it is your
limited by the HTTP protocol which is a disconnected protocol.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP

Nov 21 '05 #10
Hi Sunny,

Could you give me some links which introduce what is remoting and how
it works? Thanks,

Michael

Sunny <su***@newsgroups.nospam> wrote in message news:<u2**************@TK2MSFTNGP09.phx.gbl>...
You can take a look at remoting. With it you can fire events to the
connected client(s).

Sunny

In article <79**************************@posting.google.com >,
yi******@hotmail.com says...
Thanks John,

Is SOA(Service Oriented Achitecture) helpful for solving this issue? Thanks,

Michael

"John Timney \(Microsoft MVP\)" <ti*****@despammed.com> wrote in message news:<#C**************@TK2MSFTNGP09.phx.gbl>...
No. The protocol is based on the consumer making a request to the service,
therefore your consumer must periodically poll the service.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP

"Michael Fan" <yi******@hotmail.com> wrote in message
news:79**************************@posting.google.c om...
> I am a newbie for web servcie and want to write a web service which
> monitors the certain field in the database. Once it exceeds the
> certain value, web service will send out notification to web service
> consumer who will take action on it.
>
> Is it possible? If yes, how to implement? If possible, please provide
> me the link.
>
> Thanks lot.
>
> Michael

Nov 21 '05 #11
Hi,

you may start with MSDN. Just to get the idea, type in "remoting" in the
index of VS.Net help.

http://msdn.microsoft.com/library/en-
us/cpguide/html/cpconaccessingobjectsinotherapplicationdomainsusin gnetre
moting.asp

Next step is to get "Advanced remoting" by Ingo Rammer. "Advanced" in
the topic means that he goes very deep, but he starts with the basics,
so it is really great source. I would like to knew that before I lost a
month in pain :)

Reading the posts in .dotnet.remoting newsgroup also helps a lot.

Sunny

In article <79*************************@posting.google.com> ,
yi******@hotmail.com says...
Hi Sunny,

Could you give me some links which introduce what is remoting and how
it works? Thanks,

Michael

Sunny <su***@newsgroups.nospam> wrote in message news:<u2**************@TK2MSFTNGP09.phx.gbl>...
You can take a look at remoting. With it you can fire events to the
connected client(s).

Sunny

In article <79**************************@posting.google.com >,
yi******@hotmail.com says...
Thanks John,

Is SOA(Service Oriented Achitecture) helpful for solving this issue? Thanks,

Michael

"John Timney \(Microsoft MVP\)" <ti*****@despammed.com> wrote in message news:<#C**************@TK2MSFTNGP09.phx.gbl>...
> No. The protocol is based on the consumer making a request to the service,
> therefore your consumer must periodically poll the service.
>
> --
> Regards
>
> John Timney
> Microsoft Regional Director
> Microsoft MVP
>
> "Michael Fan" <yi******@hotmail.com> wrote in message
> news:79**************************@posting.google.c om...
> > I am a newbie for web servcie and want to write a web service which
> > monitors the certain field in the database. Once it exceeds the
> > certain value, web service will send out notification to web service
> > consumer who will take action on it.
> >
> > Is it possible? If yes, how to implement? If possible, please provide
> > me the link.
> >
> > Thanks lot.
> >
> > Michael

Nov 21 '05 #12
Michael Fan wrote:
I am a newbie for web servcie and want to write a web service which
monitors the certain field in the database. Once it exceeds the
certain value, web service will send out notification to web service
consumer who will take action on it.

Is it possible? If yes, how to implement? If possible, please provide
me the link.

Thanks lot.

Michael

If you're willing to use WSE2.0, you can make a web service that accepts
a message that is basically a subscription. This subscription has a
return address of the client (TCP, not HTTP) to which the web service
can send a message.

The hands On Labs for WSE2.0 cover some scenarios where the web service
contacts the client (after an initial client message, but when an event
fires on the server, not in response to the initial client message.) I'd
check them out.

-Ben
Nov 21 '05 #13

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.