Solved

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

Posted on 2004-09-30
6
205 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Handle null when using linq in this line 1 26
C# Connection String for Oracle database is not working 22 88
C# TextBox 11 30
LINQ - C# to VB convertion 12 46
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…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

929 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

10 Experts available now in Live!

Get 1:1 Help Now