Custom Events in Web Services

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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
    2. how to add events to a custom control
      "TIBM" <TIBM@discussions.microsoft.com> wrote in message news:15A29094-90DA-4E14-80B5-A433BE45136F@microsoft.com......
    3. 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...
    4. 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...
    5. 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 :...
  3. #2

    Default 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.

    --------------------
    >Thread-Topic: Custom Events in Web Services
    >thread-index: AcUc6gHNX6KfnD9aRN6Jav5sL7ZY3g==
    >X-WBNR-Posting-Host: 151.198.123.42
    >From: "=?Utf-8?B?RGFyc2hhbiBNZWh0YQ==?="
    <DarshanMehta@discussions.microsoft.com>
    >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:
    TK2MSFTNGXA02.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFT FEED02.phx.gbl!TK2MSFTNGP0
    8.phx.gbl!TK2MSFTNGXA03.phx.gbl
    >Xref: TK2MSFTNGXA02.phx.gbl
    microsoft.public.dotnet.framework.aspnet.webservic es:28312
    >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
    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
    >
    Dan Rogers Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139