Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ever written a public event into a WebService?

Status
Not open for further replies.

Interwizard

Programmer
Nov 9, 2001
18
US
Is it possible to code a custom event into a asp.net webservice and have a calling app listen for that event?
On my WebService, I have:

Public Event OrderComplete(ByVal Sender As Object, ByVal e As OrderCompleteEventArgs)

Public Class OrderCompleteEventArgs
Inherits System.EventArgs
'Plan was to put some custom properties here.
End Class

On my calling Winform, I have:

Public WithEvents OrderService As New wsOrderNewOrderEntry.OrderEntry

Private Sub OrderService_Start(ByVal sender As Object, _
ByVal e As EventArgs) Handles OrderService.

'...
End Sub

But... as I go to fill in the very necessary Handles OrderService.OrderComplete, the debugger accepts no events for OrderService.. Is this even possible or am I smoking crack?

Many Thanks,


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top