开发者

How to implement a Web Service in C#

开发者 https://www.devze.com 2023-03-02 06:48 出处:网络
I want to implement a Web Service in C#. Basically, expose some methods to my clients开发者_如何学运维 through a Web Service

I want to implement a Web Service in C#. Basically, expose some methods to my clients开发者_如何学运维 through a Web Service

Is there an easy example of how can I do this?

How should I declare the methods, classes, etc?


You want to look at Windows Communication Foundation (WCF) web services. This is the latest implementation of services on the .NET stack.

Eric White has a great "File > New..." blog on getting started.

http://blogs.msdn.com/b/ericwhite/archive/2010/05/11/getting-started-building-a-wcf-web-service.aspx


Here there are some examples:

http://www.codeproject.com/KB/webservices/myservice.aspx

http://www.15seconds.com/issue/010430.htm

http://blogs.sitepoint.com/net-web-services-5-steps/

0

精彩评论

暂无评论...
验证码 换一张
取 消