Solved

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

Posted on 2004-09-30
6
204 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
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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 500 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now