Solved

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

Posted on 2004-10-06
7
157 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

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

Join & Write a Comment

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
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…

744 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

12 Experts available now in Live!

Get 1:1 Help Now