Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Can a webservice notify a user to make a webservices call?

Posted on 2004-09-30
6
Medium Priority
?
211 Views
Last Modified: 2010-04-15
Hi,

I have written several Windows application with C# which use the same webservice.  I have used timers to call the programs to action and repeatedly contact the webservice to ask if there any new orders, for example.  It would be much nicer if the webservice could contact the application any time a new order comes in.

Is this possible?


Thanks,
RA
0
Comment
Question by:ba272
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 6

Expert Comment

by:viola123
ID: 12196085
of course, just add one action Listener

cheers
viola
0
 
LVL 6

Expert Comment

by:viola123
ID: 12196211
i dont know how you code your webservices.
for my understanding, when a new order come in, it will automatically raise your webservice. and the new order will be inserted into a related table, eg. workorder_table.
there should be a trigger that associates to workorder_table to deal with the new coming order.

0
 

Author Comment

by:ba272
ID: 12196907
I appreciate the tip.  That sounds like a great first step.  But I came up dry when I did a quick search in the help for "action", "listener" and "action listener".  Would I add this to the webservice or the application using the webservice?  Could you give me a particular object name or an interface name that I can read about?

Thanks a lot.

RA
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 18

Expert Comment

by:armoghan
ID: 12197599
if you talking about the webservice calling back the windows application..
I think it is not possible, not sure..

as it is a web based request, so webservice cannot call a function on the client application

Windows application needs to call the web service
0
 
LVL 9

Expert Comment

by:Thalox
ID: 12197626

Sorry, but I think you can't notify a client from a webservice.
A webservice works like a "normal" html / aspx page; a client could ask something and the webservice will answer, but only is this way, not the other way.

to notify a client the client must be listening to a specified port (with sockets or something like this) and the nthe webservice can connect to this port and notify the client. but this will "disable" the webservice functionality (and all of its advantages).
then this would be the same as a normal client-server-app (without webservices)

So I think your method with the timer is allready the best...


Thalox
0
 
LVL 8

Accepted Solution

by:
Razzie_ earned 1500 total points
ID: 12198063
Remoting is great for this. As soon as a new order comes in your webservice, you can communicate with your applications.

This is a very easy-to-understand MSDN article: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07172003.asp
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question