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
Marina - 28 Feb 2005 14:30 GMT
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.
> Hello,
> I have created a class with custom events.
[quoted text clipped - 15 lines]
> Thanks in Advance,
> Darshan
Dilip Krishnan - 01 Mar 2005 01:16 GMT
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
> Hello,
> I have created a class with custom events.
[quoted text clipped - 14 lines]
> Thanks in Advance,
> Darshan

Signature
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com