Implement Interface wizard?

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
 
N

Nicholas Paldino [.NET/C# MVP]

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.
 
D

Derrick

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top