Solved

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

Posted on 2004-10-06
7
163 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
[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
  • 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

636 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