Ask a Question related to ASP.NET Web Services, Design and Development.
-
Darshan Mehta #1
Custom Events in Web Services
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
Darshan Mehta Guest
-
How to use custom events to existing components
See these FB 2.0.1 help topics (or via LiveDocs if using FB3 and if topics differ): About events Dispatching custom events -
how to add events to a custom control
"TIBM" <TIBM@discussions.microsoft.com> wrote in message news:15A29094-90DA-4E14-80B5-A433BE45136F@microsoft.com...... -
Events in Custom Controls and Sub Classes
Hello i try do this. Class DemoBase Public Delegate Sub DemoItemEventHandler(ByVal sender As Object, ByVal e _ As DemoItemEventArgs) Public... -
Composite custom controls events
sorry, I send copy to webcontrols, and then I find a more relevant group, please help me I create a simple custom tabular control, and try for... -
Q: how to create custom events
ok ive been all through the manual again trying to figure this out but i just cant find it. how can i generate my own custom event ? for example :... -
Dan Rogers #2
RE: Custom Events in Web Services
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.
--------------------<DarshanMehta@discussions.microsoft.com>>Thread-Topic: Custom Events in Web Services
>thread-index: AcUc6gHNX6KfnD9aRN6Jav5sL7ZY3g==
>X-WBNR-Posting-Host: 151.198.123.42
>From: "=?Utf-8?B?RGFyc2hhbiBNZWh0YQ==?="TK2MSFTNGXA02.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFT FEED02.phx.gbl!TK2MSFTNGP0>Subject: Custom Events in Web Services
>Date: Sun, 27 Feb 2005 08:33:02 -0800
>Lines: 18
>Message-ID: <D728DA4C-78FF-4FFD-BF96-109A57EC97D5@microsoft.com>
>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.webservic es
>NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
>Path:
8.phx.gbl!TK2MSFTNGXA03.phx.gblmicrosoft.public.dotnet.framework.aspnet.webservic es:28312>Xref: TK2MSFTNGXA02.phx.gblhas>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
>
>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>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
>Dan Rogers Guest



Reply With Quote

