PC Review


Reply
Thread Tools Rate Thread

Custom Events in Web Services

 
 
=?Utf-8?B?RGFyc2hhbiBNZWh0YQ==?=
Guest
Posts: n/a
 
      27th Feb 2005
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
 
Reply With Quote
 
 
 
 
Joshua Flanagan
Guest
Posts: n/a
 
      28th Feb 2005
You probably need to include some code. What part of the project is
failing? Is it the delegate definition that is failing to compile, or
an attempt to use the delegate?

Are you intending to delcare an event that will be consumed by your web
service clients? That they will automatically be notified when
something happens on the server? I don't think that is going to work,
you may have to re-think your design.

Joshua Flanagan
http://flimflan.com/blog

Darshan Mehta wrote:
> 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

 
Reply With Quote
 
=?Utf-8?B?RGFyc2hhbiBNZWh0YQ==?=
Guest
Posts: n/a
 
      28th Feb 2005
Thanks for replying,
I found out from the knowledge base that
delegates and events don't work across a Web Service and a Windows App. I am
experimenting with TcpListener and TcpClient classes instead.

"In this world of complex technology to bring things together, the solution
often lies in simpler/primitive concepts."

Darshan

"Joshua Flanagan" wrote:

> You probably need to include some code. What part of the project is
> failing? Is it the delegate definition that is failing to compile, or
> an attempt to use the delegate?
>
> Are you intending to delcare an event that will be consumed by your web
> service clients? That they will automatically be notified when
> something happens on the server? I don't think that is going to work,
> you may have to re-think your design.
>
> Joshua Flanagan
> http://flimflan.com/blog
>
> Darshan Mehta wrote:
> > 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

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
custom events in custom controls not appear in properties window Peted Microsoft C# .NET 0 25th May 2009 09:09 AM
custom events in custom controls not appear in properties window Peted Microsoft C# .NET 0 25th May 2009 09:09 AM
Custom Events versus Multicast Delegates for events(VB.NET) =?Utf-8?B?aGVyYmVydA==?= Microsoft Dot NET 2 14th Feb 2007 02:51 PM
Re: No Events possible within windows services? Phill W. Microsoft VB .NET 3 22nd Jan 2007 02:44 PM
Events and Windows Services Jason Microsoft VB .NET 1 30th Sep 2006 05:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:14 PM.