Groups | Blog | Home
all groups > dotnet web services > february 2005 >

dotnet web services : Events in WebServices



Darshan Mehta
2/27/2005 8:29:06 AM
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,
Marina
2/28/2005 9:30:58 AM
I don't see how an even in a web service could possibly work. HTTP is a
connectionless protocol. There is no way for the event handler to a web
service's event to get called.

[quoted text, click to view]

Dilip Krishnan
2/28/2005 7:16:25 PM
Delegates will not work in a web service you would need to use the
supported datatypes [0]. Try implementing the WS-Eventing spec using the
implementation at [1]

[0] - http://msdn.microsoft.com/workshop/author/webservice/datatypes.asp
[1] - http://sourceforge.net/projects/plumbworkorange

[quoted text, click to view]

--
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
AddThis Social Bookmark Button