Solved

.NET, C#, Windows appl with Webservices - listening, receieving, then acting!

Posted on 2004-10-06
7
161 Views
Last Modified: 2010-04-15
using: .NET, C#

I have a windows application and within this solution i also have a Webservice.

When a routine in the webservice is called,  I want to display a messagebox to the user informing them that request has come in. In other words I have my Web service "listening" for requests/messages, and when one arrives, I want to inform the User (human) that a request has been receieved.

Any ideas on how to do this would be GREATLY appreciated (dont mean to sound pushy, but Im in kinda of a rush for a solution!)

Thanks
Rad.
0
Comment
Question by:rad_001
  • 3
7 Comments
 
LVL 18

Expert Comment

by:armoghan
ID: 12236359
You want to have call backs using Webservices
see the following link
http://www.codeproject.com/cs/webservices/webservicecallback.asp
0
 
LVL 18

Expert Comment

by:armoghan
ID: 12236363
0
 
LVL 18

Accepted Solution

by:
armoghan earned 500 total points
ID: 12236392
For such kind of things usually Remoting is used but you can use it the way described in the first link with web services as well

for remoting see
http://www.codeproject.com/csharp/remotingcallbacks.asp
0
 
LVL 3

Expert Comment

by:atxondo
ID: 12248060
And why dont you put to show a MessageBox inside the webService when the methos you want to check is called??
You can publish an object dinamicaly with --> RegisterWellKnownServiceType(...)
public class RemoteObject : MarshalByRefObject
{
        private int calls=0;
      //......//
        static RemoteObject ()
      {
            //
            // TODO: Add constructor logic here
            //
      }
      //....//
      public void MethodToCall ()
      {
            calls++;
            System.Windows.Forms.MessageBox.Show("This is the call number:  " + calls.ToString());
      }
}    

Publish this object and when you call to MethodToCall() a messagebox in the server machine will be shown.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C# LINQ ForEach() question 6 77
C# MVC Insert Multiple Row into DB 2 61
Dynamics CRM Plugin Query TotalRecordCount returning -1 13 56
Where is this file? 3 33
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

735 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