Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / March 2005

Tip: Looking for answers? Try searching our database.

Events in WebServices

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Darshan Mehta - 27 Feb 2005 16:29 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.