Hi all,
I have a interface(let us say IX) in which I have defined a property(Timeout). Now there is a class which implements this interface and it is a webservice and it is derving from SoapHttpClientProtocol. My question is Can webservice implementa property. In most of the examples I has always been methods.
AlanPosted Nov 21, 2007, 3:29 PM
I'm fairly certain that you can only use methods in Web services because the WebMethod attribute can only target methods and there's no WebProperty attribute or anything like that in the framework.
However, you can of course implement a property using 'get' and 'set' methods so it shouldn't be too much of problem in practice.