Solved

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

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

776 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