Custom Events in Web Services

D

Darshan Mehta

Hello,
I have created a class with custom events.
The delegate for the event is created before the class is declared.
This event works fine when deployed locally.
I convertied the Class into a Web Service, by adding the appropriate
[WebMethod()] and [WebService()] attributes.

When I try to build the Project, I get an error stating the the delegate has
no constructor.

Is there any special attribute I need to apply to the delegate, to make it
work?
Is there any Reference material for declaring delegates and events in
WebServices?
Any help would be appreciated.

Thanks in Advance,
Darshan
 
D

Dan Rogers

This won't work. You can't expect web service classes to behave like
remote classes (or COM objects, etc). The paradigm is message based, so
delegates and events don't automatically get converted.

You might want to look at the early specs for WS-Eventing.

--------------------
Thread-Topic: Custom Events in Web Services
thread-index: AcUc6gHNX6KfnD9aRN6Jav5sL7ZY3g==
X-WBNR-Posting-Host: 151.198.123.42
From: "=?Utf-8?B?RGFyc2hhbiBNZWh0YQ==?="
Subject: Custom Events in Web Services
Date: Sun, 27 Feb 2005 08:33:02 -0800
Lines: 18
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.aspnet.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: TK2MSFTNGXA02.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFTNGP0
8.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.framework.aspnet.webservices:28312
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices

Hello,
I have created a class with custom events.
The delegate for the event is created before the class is declared.
This event works fine when deployed locally.
I convertied the Class into a Web Service, by adding the appropriate
[WebMethod()] and [WebService()] attributes.

When I try to build the Project, I get an error stating the the delegate has
no constructor.

Is there any special attribute I need to apply to the delegate, to make it
work?
Is there any Reference material for declaring delegates and events in
WebServices?
Any help would be appreciated.

Thanks in Advance,
Darshan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,740
Latest member
JudsonFrie

Latest Threads

Top