上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
.net 4.5篇在.net 4.5下面微软提供了System.Net.Http.dll可以非常方便的使用HTTP请求(其实是用来支持Asp.Net Web Api的,不过我们可以拿过来用)服务仍然就还是使用第一篇的。开发工具:Visual Studio 2013.net版本:4.5一、新建控制台程序:注意:WinForm、WebForm的方式将会一样,风格还是接近0配置,个人比较讨厌繁杂的配置,所以大篇幅的web.config不在本篇讨论之列。打开Visual Studio 2013新建控制台WCFRestFulClient45,添加对组建的引用:注意:这里光引用上面2个还不够,还需要引用一 Read More
posted @ 2013-12-04 22:18 石曼迪 Views(1337) Comments(0) Diggs(0) Edit
.net 4.0篇在.net 4.0下面微软并没有提供类似Net.Http的Rest访问组件,而是在codeplex上面提供的WCF REST Starter Kit Preview 2 里面可以找到早期的版本,访问地址:http://aspnet.codeplex.com/releases/view/24644,这个问题在.net 4.5中得到明确支持和完美解决。那我们就从这个地址下载安装包进行安装,然后在C盘默认的路径下找到这几个DLL:“Microsoft.Http.dll”、“Microsoft.Http.Extensions.dll”准备添加到项目的引用中去。注意:本篇介绍的是基于接 Read More
posted @ 2013-12-04 21:41 石曼迪 Views(1576) Comments(0) Diggs(0) Edit
RestFul风格的WCF既然作为跨平台、跨语言、跨技术的一种方式出现,并且在ASP.NET API流行起来之前还是架构的首选技术之一,那么我们就来简要的介绍一下WCF在各个平台客户端的操作。开发工具及版本:Microsoft Visual Studio 2013(.net 4.0),jQuery JavaScript Library v1.4.2,服务端创建步骤:第一步:打开vs创建一个类库名为:ILongshi.BIZ。(为何要创建类库而不是WCF类库,是要完全从头开始手动完成所有操作并且加深对WCF的理解)。删除多余的Class1类,创建一个User类,具备ID,NAME,AGE属性,然 Read More
posted @ 2013-12-02 21:46 石曼迪 Views(1804) Comments(0) Diggs(1) Edit
前言在WEB数据传输过程中,json是以文本,即字符串的轻量级形式传递的,而客户端一般用JS操作的是接收到的JSON对象,所以,JSON对象和JSON字符串之间的相互转换、JSON数据的解析是关键。先明确2个概念例如:JSON字符串:var str1 = '{ "name": "deyuyi", "sex": "man" }';JSON对象:var str2 = { "name": "deluyi", "sex": "man&qu Read More
posted @ 2013-11-28 21:39 石曼迪 Views(69737) Comments(8) Diggs(16) Edit
简介:基于 REST 的 Web 服务日益成为后端企业服务集成的首选,因为它比 SOAP 更加简单。这篇文章介绍了一个简单的可扩展框架,使用Asp.net Web Api作为 REST 服务的实现。它详细描述了设计细节,并探讨了各种可扩展性方法。概念REpresentational State Transfer (REST) 是一种架构原则,其中将 web 服务视为资源,可以由其 URL 唯一标识。RESTful Web 服务的关键特点是明确使用 HTTP 方法来表示不同的操作的调用。设计原则:REST 的基本设计原则对典型 CRUD 操作使用 HTTP 协议方法:POST - 创建资源GET Read More
posted @ 2013-11-12 19:49 石曼迪 Views(17584) Comments(0) Diggs(1) Edit
对象(List)的序列化和反序列化 Read More
posted @ 2013-11-07 21:39 石曼迪 Views(6641) Comments(0) Diggs(0) Edit
WIN 8.1正式版64位(cn_windows_8_1_pro_vl_x64_dvd_2971907)使用问题及解决一、IE11的输入框会变蓝;如在百度中搜索时,搜索框和按钮均变成蓝色背景,用户体验很不好,据说查了下资料说是集成显卡才会有这问题,解决方案如下: 打开IE的InterNet选项,在高级里面勾上"使用软件呈现…",问题解决。 Read More
posted @ 2013-11-04 14:39 石曼迪 Views(249) Comments(0) Diggs(0) Edit
使用 Visual Studio 2013 链接 TFS.Connect Visual Studio.com微软为我们提供了一个免费的代码托管服务,地址是http://tfs.visualstudio.com,我们可以非常方便的将Visual Studio Team Foundation服务共享和建立你的代码和改善你的客户和你的团队成员的合作。下面就让我们来看看如何使用:1. Create a Visual Studio account and team project实际上在第一次使用Visual Studio 2013的时候,就已经要求使用liveID进行登录了,虽然当时我不知道这么做有什 Read More
posted @ 2013-10-27 19:51 石曼迪 Views(3442) Comments(2) Diggs(0) Edit
Creating a REST service using ASP.NET Web API A service that is created based upon the architecture of REST is called as REST service. Although REST looks more inclined to web and HTTP its principles can be applied to other distributed communication systems also. One of the real implementation of RE Read More
posted @ 2013-10-27 13:00 石曼迪 Views(3503) Comments(0) Diggs(1) Edit
HTTP is not just for serving up web pages. It is also a powerful platform for building APIs that expose services and data. HTTP is simple, flexible, and ubiquitous. Almost any platform that you can think of has an HTTP library, so HTTP services can reach a broad range of clients, including browsers, Read More
posted @ 2013-10-21 19:36 石曼迪 Views(15523) Comments(3) Diggs(1) Edit
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
瓴域建设-环保事业中心