WebServices and Interfaces?

  • Thread starter Thread starter Ole Hanson
  • Start date Start date
O

Ole Hanson

Hi

Maybe a stupid question, but:

Like you can shield classes behind Interfaces (e.g. IMyInterface) and
program against that, is it possible to expose a WebService in the same
manner??
that is: let the WebService implement a given interface??

if not - what are you using as "Interface" for the methods exposed by a
WebService? It must be something that describes the methods etc.?
Thank you,
/Ole
 
The interface for a Web Service is the WSDL file. If you are using Visual
Studio, the WSDL file is generated for you.

Your question about inheritance of a web service is an interesting one. I
think, however, that a web service is really an implementation of an OO
class interface, and therefore it is no more "inheritable" than a specific
class instance is.

What would an inherited web service mean? Does it mean that the child
service would create WSDL for methods that are inherited from the parent,
catch these methods and automatically redirect them to some other service?
That doesn't work, because a web service is a run-time construct, not a
design time construct. There's no way to guarantee the behavior of
something like that.

--- Nick
 
Back
Top