账号: 密码:
中国大学出版社协会 | 首页 | 宏观指导 | 出版社天地 | 图书代办站 | 教材图书信息 | 教材图书评论 | 在线订购 | 教材征订
搜索 新闻 图书 ISBN 作者 音像 出版社 代办站 教材征订
购书 请登录 免费注册 客服电话:010-62510665 62510769
图书查询索引 版别索引 分类索引 中图法分类 专业分类 用途分类 制品类型 读者对象 自分类 最新 畅销 推荐 特价 教材征订
综合查询
RESTful.NET(影印版) - 中国高校教材图书网
书名: RESTful.NET(影印版)
ISBN:978-7-5641-1650-7 条码:
作者: Jon Flanders  相关图书 装订:平装
印次:1-1 开本:16开
定价: ¥43.00  折扣价:¥40.85
折扣:0.95 节省了2.15元
字数:
出版社: 东南大学出版社 页数: 312页
发行编号: 每包册数:
出版日期: 2009-07-01
小团购 订购 咨询 推荐 打印 放入存书架

内容简介:
《RESTful.NET》是第一本为欲使用最新的微软工具建立RESTful Web服务的Windows开发人员而准备的书。本书作者Jon Flanders是WCF(Windows Communication Foundation)专家。这本简单实用的教程示范了如何使用WCF和.NET 3.5 Framework的其他组成部分,来建立、部署并使用多种应用场景中基于REST的Web服务。
  RESTful体系结构提供了比SOAP、SOA或繁琐的WS-*堆栈更为简单的方式以建立Web服务。WCF已经被证实为无须依托WS-*标准即可建立分布式处理系统的灵活技术。《RESTful.NET》为消耗机器和人力建立Web服务提供了一个WCF REST编程模型的完全指导。你将学习到如何:
  ·编写Read-Only(GET)服务
  ·编写READ/WRITE服务
  ·主机REST服务
  ·编写REST feeds
  ·编写AJAX REST客户端
  ·安全REST终端
  ·使用工作流传递REST服务
  ·利用WCF消耗RESTful XML服务
  ·结合HTTP运作
  ·结合ADO.NET数据服务(之前称为Astoria)运作
  《RESTful.NET》是一本非常棒的介绍REST和RESTful结构的书籍。如果你使用.NET开发,那么是时候转向RESTful了——这本书将会讲解方法。

作者简介:
 
章节目录:
Foreword
Preface
1. REST Basics
Architecture of the World Wide Web
SOAP
REST
Resources and URIs
Uniform Interface
Resource Representations
Implementing a Simple RESTful Service Example
Resources
URIs and Uniform Interface
Representations
Interaction
Wrap-Up
Processes
Summary

2. WCF RESTful Programming Model
Isnt WCF All About SOAP?
Channels and Dispatching
HTTP Programming with WCF 3.0
Web Programming in WCF 3.5
WebHttpBinding
WebHttpBehavior
WebServiceHost
WebOperationContext
WebGetAttribute
UriTemplate
UriTemplate Literal Values
UriTemplate Special Values
UriTemplate QueryString
Summary

3. Pr0gramming Read-0nly Services
Using WebGetAttribute and UriTemplate
Data Formats
Message
DataContract
XmlSerializer
Hybrid Approach
Summary

4. Programming Read/Write Services
POST, PUT, and DELETE
Using WeblnvokeAttribute
Resources
URIs and Uniform Interface
Representations
Implementation
Summary

5. Hosting WCF RESTful Services
WCF REST Hosting Isnt a Special Case
Self-Hosting
Configuring, Opening, and Closing a ServiceHost
Base Addresses
ServiceHost Versus WebServiceHost
Custom ServiceHost
Hosting in IIS
ASP.NET Compatibility
Multiple Hosmames
Removing the .svc File Extension
Custom ServiceHostFactory
Hosting Wrap-Up
Summary

6. Programming Feeds
Building a Feed with WCF
SyndicationItem
Formatters
Exposing a Feed on a Live URI
Feed Validation
Adding Links to a Feed
Summary

7. Programming Ajax and Silverlight Clients
WCF Web Services and Ajax
JSON
JSON-Enabling a Service Endpoint
ASP.NET Ajax
Silverlight 1.0
Silverlight 2.0
Parsing XML in Silverlight 2.0
Parsing JSON in Silverlight 2.0
Consuming Feeds in Silverlight 2.0
Cross-Domain Security in Silverlight 2.0
Returning JSON and XML Conditionally with a Single Method
Summary

8. Securing REST Endpoints
Authenticating: Self-Hosted Endpoints
Setting Endpoint Security: WebHttpBinding.Securitys Mode Property
Setting Authentication Requirements: WebHttpBindings Transport
Property
Authenticating: Managed Hosting Endpoints
Authorizing Endpoints
Authorization with Impersonation
Role-Based Authorization
Summary

9. Using Workflow to Deliver REST Services
Consuming REST Services from WF
The SendActivity Instance
The ReceiveActivity Instance
Stateless Workflow Services
Stateful Workflow Services
Summary

10. Consuming RESTful XML Services Using WCF
Defining the Client
Generating the Contract
Creating the Resource Representations
Creating the ServiceContract
Using the Service
Client Extensibility
Summary

11. Working with HTTP
Programming HTTP with WCF
IncomingWebRequestContext
OutgoingWebResponseContext
OutgoingWebRequestContext
IncomingWebResponseContext
Context Wrap-Up
Status Codes
201 —— Created
404 —— Not Found
Conditional GET
LastModified
ETags
Caching
Output Caching
HttpContext.Cache
Content-Type
Summary
A. WCF 3.5 SP1
B. ADO.NETData Services.
C. ADO.NET Entity Framework Walkthrough
Index

精彩片段:
People often ask me why I would use WF when anything that I canaccomplish in WF could be written using just code. My typical answeris that I think WF is a powerful model for some (perhaps many) usecases because of the visibility it provides, both at development time andat runtime. For instance, notice that I didnt have to spend much timeexplaining what this workflow does, as Figure 9-1 explains it well. Infact, while I was writing this chapter, I asked my 15-year-old son (whois not a developer) to look at the figure, and with no background knowl-edge of WF he was able to discern the functionality of the workflow.Using WF to explain application logic to a 15-year-old is probably astretch, but I think it illustrates the power of WFs visibility-encouragingmodeling.
  The workflow first checks the blog entry for any spelling errors. If there are errors, theUI will notify the user and allow him to fix the errors. Then the workflow creates anAtom entry, and finally it executes the last and most important activity in the workflow:the AddEntry activity. This instance of SendActivity will call the RESTful endpoint thatimplements the service function of the IBlogAPI contract (the code for the IBlogAPIcontract is included with the code samples for this book).
  You can add a 5endActivity instance to your workflow by dragging it from the Toolboxand dropping it onto your workflow design surface in the appropriate area. To config-ure it, double-click on it in the Designer (or go to the Property Grid and modify all therequired properties). When you double-click on SendActivity, the Choose Operationdialog box will appear (see Figure 9-2).

书  评:
 
其  它:
 



| 我的帐户 | 我的订单 | 购书指南| 关于我们 | 联系我们 | 敬告 | 友情链接 | 广告服务 |

版权所有 © 2000-2002 中国高校教材图书网    京ICP备10054422号-7    京公网安备110108002480号    出版物经营许可证:新出发京批字第版0234号
经营许可证编号:京ICP证130369号    技术支持:云因信息