如何实现在C#中的Web服务 [英] How to implement a Web Service in C#

查看:140
本文介绍了如何实现在C#中的Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想实现在C#中的Web服务。基本上,通过Web服务暴露一些方法给我的客户

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?

推荐答案

您想看看Windows通讯基础(WCF)Web服务。这是一个服务于.NET堆栈的最新执行情况。

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.

<一个href="http://blogs.msdn.com/b/ericwhite/archive/2010/05/11/getting-started-building-a-wcf-web-service.aspx" rel="nofollow">http://blogs.msdn.com/b/ericwhite/archive/2010/05/11/getting-started-building-a-wcf-web-service.aspx

这篇关于如何实现在C#中的Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆