Implement Interface wizard?

  • Thread starter Thread starter Derrick
  • Start date Start date
D

Derrick

Is there an implement interface wizard is C#/Visual Studio?

And, I have an interface, with many implentations, want to provide a Web
Service implementation. What would be the standard practice? Implement the
interface in the main asmx class? Or just have all interface methods
available, but without explicitly implementing it?

Thanks in advance!

Derrick
 
Derrick,

Implementing the interface on the web service won't do much, because the
concept of a web service and an interface don't mix (the "interface" is
defined by the schema of the web service, and the different implementations
are different hosting providers).

However, you could do this by creating your web service implementation,
and then implementing the interface on the proxy that is used to access the
web service. You can do this by using the WDSL utility to generate proxy
code for you (instead of a compiled assembly), and then modify the code to
implement the interface.

Hope this helps.
 
Ahhh, yes, sounds like a plan, I didn't think implementing the interface on
the web side made sense..

Thanks!

Derrick

Nicholas Paldino said:
Derrick,

Implementing the interface on the web service won't do much, because the
concept of a web service and an interface don't mix (the "interface" is
defined by the schema of the web service, and the different implementations
are different hosting providers).

However, you could do this by creating your web service implementation,
and then implementing the interface on the proxy that is used to access the
web service. You can do this by using the WDSL utility to generate proxy
code for you (instead of a compiled assembly), and then modify the code to
implement the interface.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


Derrick said:
Is there an implement interface wizard is C#/Visual Studio?

And, I have an interface, with many implentations, want to provide a Web
Service implementation. What would be the standard practice? Implement the
interface in the main asmx class? Or just have all interface methods
available, but without explicitly implementing it?

Thanks in advance!

Derrick
 
Back
Top