Problem with events in Webservices
-
Hello! I have the following situation: A server should call event, which are being handled by the client. So i took the example posted on codeproject http://www.codeproject.com/useritems/RemotingEvent.asp (Remoting Event) and merged it with my existing code. When calling soapsuds for the desired webservice-class i get all my other methodes, but for the event i only get "add_xyevent"- and "remove_xyevent"-methodes. In the code in the example metioned above the event is subscribed inside the client like a regular event:
m_server.xyevent += new EventDelegate(handlerFuncion)
So i tried to use the event-method "add_xyevent", which ran into an SerializationException telling me that SOAP cannot serialize a generic type.m_server.add_xyevent(handlerFuncion);
=> SerializationException My question is: How can i subscribe to this event? Do i have to provide a specific keyword when declaring the event on the server? Who can help me? Thanks a lot! J.