WCF

For developing a WCF service application, there are mainly two tools – Microsoft Visual Studio and CodePlex. Microsoft Visual Studio is a complete package of development tools, necessary for developing a large number of diverse applications like ASP.NET web applications, desktop applications, mobile applications, and many more.

主要有2个工具可以用来开发wcf服务应用:VS以及CodePlex。  VS是一个完整的开发工具包,开发大量不同的应用是有必要的使用VS的,比如asp.net网络应用,桌面应用,手机应用以及其他的。

Microsoft Visual Studio uses the .NET framework functionality. VS使用.net framework的函数

CodePlex on the other hand is an open-source project hosting site of Microsoft that offers several free tools for WCF service application development.

另一方面CodePlex是微软的开源项目托管网站,并且提供几款免费的工具,可以用于wcf服务应用开发。

Microsoft Visual Studio

There are many editions of Microsoft Visual Studio and initially it (Visual Studio 2005) was not an ardent supporter of WCF development. At present, Visual Studio 2008 is the only Microsoft IDE available for the development of WCF service applications.

VS有许多版本,初始版本VS2005并不支持wcf开发。当前,vs2008是唯一一个支持wcf开发的微软继承开发环境 ide is for integrated development enivonment

Nowadays, the latest version of Microsoft Visual Studio 2010 is also a preferred tool for developing WCF service application. There is also a readymade template in Visual Studio for developing WCF service application.

现在,最新的VS版本--VS2010,同样支持开发wcf服务应用。VS中有一些现成的模板可以用于开发wcf服务应用

选择一个模板,vs会处于一下目的添加文件

Selection of such a template leads to addition of files for the following purposes:

  • Service contract     服务契约
  • Service implementation    服务实现
  • Service configuration   服务配置

Requisite attributes get added automatically and a simple "Hello World" service gets created by Microsoft Visual Studio without even writing any code.

必备的属性会自动添加,并且一个简单的hello world服务会被VS创建,而你不需要编写任何代码

CodePlex

CodePlex was launched by Microsoft in June 2006 and since then, it has been used by a large number of developers across the world to create .NET projects successfully. Some of the tools offered by CodePlex for developing WCF service applications are as follows:

CodePlex由微软在2006年6月发起,自那时起,它被全世界大量的开发者使用,成功的创建了.net的项目.CodePlex上能够用来开发wcf服务应用的工具如下:

  • wscf.blue - This is a Microsoft Visual Studio add-in, and also "contract-first" development toolset that facilitates the defining of the WCF service operations, and generating a code skeleton accordingly. An important link for the same is :http://wscfblue.codeplex.com

  • WCFProxyGenerator - This is also a Microsoft Visual Studio add-in. The tool is used to extend the client-side generation and offer additional error handling. For having more information regarding this particular development tool, visithttp://wcfproxygenerator.codeplex.com

  • WCFMock - Testing of WCF service can be a complicating task and this development tool offers a convenient solution for the unit testing of WCF services by its useful classes. For more information regarding this tool, visithttp://wcfmock.codeplex.com

Another free tool for the development of WCF service applications in an easy manner is WCFStorm. Its LITE version offers many striking features for dynamically invoking and testing WCF services, editing the service binding, modifying WCF URL endpoint, etc.

wscf.blue  VS的插件,“契约优先”的开发工具包,使得定义wcf服务操作更容易,并可以可以生成代码框架。

wcfProxygenerator  同样是一个VS插件。用于扩展客户端的生成,提供了额外的错误处理。

wcfMock 测试wcf服务是一项复杂的任务,这开发工具提供了一个简便的解决方案来进行wcf的单元测试,通过使用这个工具提供的有用的类。

wcfStorm提供了一个容易的方式来开发wcf服务,它的轻量级版本提供了许多突出的特点来动态调用和测试wcf服务,并且可以编辑服务帮顶一记修改wcf的url终结点等等

原文地址:https://www.cnblogs.com/chucklu/p/4628509.html