Solved

Server Notification to WinClient?

Posted on 2002-07-15
8
249 Views
Last Modified: 2010-08-05
(I'm a newbie to .NET and SOAP calls, so please be gentle.)

Please consider this scenario (VB.NET):

1)  I have web-based functionality that I need users to leverage through HTTP protocol.
2)  When the user (via a WinClient app) submits binary data (again, via HTTP) to my web-side app, I will begin a new thread to process that data.  Therefore, control will be returned to the WinClient app very quickly.
3)  I need a way of:
     a.  Notifying the WinClient that processing is complete;
and     b.  Allowing the user (via a call to a Function) to retrieve his/her results of the procedure launched in step (2) above.

My question is, how do I do this?

I'm using a Web Service now where it makes sense, but I realized on Friday that I cannot merely create the client-side WebService "WithEvents" and expect the Web Service to relay notification events back to the WinClient.  In other words, this would not fly:

     '** Client-side VB.NET app
     Private WithEvents MyObj As New SomeWebApp.SomeWebService

     '** Catch those Server-side Web Service events here.
     '** Wouldn't THIS be handy?
     Private Sub MyObj_YourResultsAreReady()
           ...
     End Sub

But you see, I need functionality *LIKE* this.  I need the WinClient to somehow get notification from the Server *without* having to contantly poll a Web Service ("Are you done yet?  How about now?  How about now?") How do I work asyncronously with a server-side procedure, and still receive efficient notification in my WinClient app?

I'm going to make this a 200-point question, because I need more of an answer than just "use remoting" or something like that.  I can't expect a live, fully-documented solution for 200 points, but I do need some real help on how this can be done.  If you know of a website somewhere that contains a solution, then that would be great.

Thanks a lot.
0
Comment
Question by:bryker
  • 4
  • 3
8 Comments
 
LVL 22

Expert Comment

by:CJ_S
Comment Utility
The application is clientside and the webservice is serverside. You will need remoting to do what you want to do.

So, you will need to instantiate an object on the server and retrieve the events on the client. You can accomplish that through marshalling.

Use System.Remoting.RemotingServices and use the Marshal method (which is static, so you don't need to create an object) on your instantiated object (which should be derived from MarshalByRefObject).

CJ
0
 
LVL 22

Expert Comment

by:CJ_S
Comment Utility
That way you CAN use WithEvents (as you probably already tried, you won't get any build errors).

CJ
0
 

Author Comment

by:bryker
Comment Utility
And this could be done asynchronously?
0
 
LVL 22

Expert Comment

by:CJ_S
Comment Utility
Yes (depending on the speed of the connection with the server, but basically it will be asynchronously)
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

Author Comment

by:bryker
Comment Utility

CJ:

>use the Marshal method (which is static, so you
>don't need to create an object) on your
>instantiated object

Where is this object instantiated?  For instance, is it on the client, or is it on the server?  Wouldn't someone (client or server) then have to UN-marshal it, to complete the reference passing?
0
 
LVL 22

Expert Comment

by:CJ_S
Comment Utility
AFAIk not, but am not sure.

Will create a small example later today.

CJ
0
 

Author Comment

by:bryker
Comment Utility
I've had to move on from this problem.
0
 

Accepted Solution

by:
ComTech earned 0 total points
Comment Utility
This question will be placed in PAQ, and points refunded.

Regards,

ComTech
Community Support Administrator  
Experts-Exchange  

User has found info elsewhere.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
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…

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

17 Experts available now in Live!

Get 1:1 Help Now