摘要:
在上篇文章中和大家一起学习了建立基本的WebAPI应用,立刻就有人想到了一些问题:1.客户端和WebService之间文件传输2.客户端或者服务端的安全控制要解决这些问题,要了解一下WebAPI的基本工作方式。(一)WebAPI中工作的Class在MVC中大家都知道,获取Request和Response使用HttpRequest和HttpResponse两个类,在WebAPI中使用两外两个类:HttpRequestMessage 和HttpResponseMessage,分别用于封装Requset和Response。除了这两个类之外,还有一个常见的抽象类:HttpMessageHandler, 阅读全文
posted @ 2012-12-17 22:38
火腿骑士
阅读(301)
评论(0)
推荐(0)
摘要:
http://stackoverflow.com/questions/10660721/what-is-the-difference-between-httpresponsemessage-and-httpresponseexception 阅读全文
posted @ 2012-12-17 22:31
火腿骑士
阅读(124)
评论(0)
推荐(0)
摘要:
http://www.prideparrot.com/blog/archive/2012/8/uploading_and_returning_files 阅读全文
posted @ 2012-12-17 21:18
火腿骑士
阅读(140)
评论(0)
推荐(0)