Download presentation
Presentation is loading. Please wait.
1
Web Services 开发 杨永智 MCT/MVP 微软校园大使
2
日程 Micrsoft .NET 与 Web Services 案例学Web Services 开发 Web Services 开发拾遗
3
Microsoft .NET 下一代互联网开发平台
新观念(Vision) 软件作为服务“Software As A Service” 标志 Longhorn, Office 12, SQL Server 2k5,Visual Studio2005 … etc 体系结构 XML Web Services Microsoft .NET对Web Services的支持 Microsoft是Web Services标准的重要贡献者以及领跑者 Microsoft .NET 为Web Services定身量做 高效的Web Services开发 What Is .NET? .NET is a technology evolution built from the ground up for the Web. --It is not a bolt-on solution. It’s a new framework that can provide seamless integration of multiple applications and devices. It can be used to take advantage of the abundant computing and communications resources provided on the Internet to enable smart, service-aware systems and richer user experiences. .NET is based on standards and a unified programming model. Web standards are open and non-proprietary, they are built to be first-class constructs and they drive interoperability and integration of new existing systems. .NET is multi-language because it works in the language of your choice. XML Web services enable you to build and operate Web services that deliver software as a service. XML Web services are today’s best-of-breed business integration since they allow customer centricity in your business applications. Consistent programming model with the highest productivity tools. Visual Studio .NET is the next generation of the Microsoft Integrated Development Environment. Everyone who has been using Microsoft development tools will feel right at home with Visual Studio .NET. Lower total cost of ownership with reusable self-describing applications, no registry, robustness and security and simplified deployment. Note: There is a .NET runtime for Windows 98 and up. The development environment is Windows 2000 and up.
4
日程 Micrsoft .NET 与 Web Services 案例学Web Services 开发 Web Services 开发拾遗
5
日程 Micrsoft.NET 与 Web Services ASP.NET Web Services开发
案例:Coding4Fun之Building Family History Web Services项目的部署
6
案例学Web Services开发 关于Building Family History
数据库定义 功能定义&实现 发布Web Services 测试Web Services
7
关于Building Family History
背景:Coding4Fun( 关于Building Family History 开发环境 Visual Developer Web Server SQL Server Express
8
创建Building Family History
演练:Step By Step教你创建Web Services
9
数据库定义 SQL Server 2k5 Express Edition Family数据库 Person 表
10
功能定义&实现 FindPersons UpdatePerson
11
发布Web Services XCopy方式 需要配置IIS MSI安装包
12
测试Web Services Internet Explorer客户端 其他客户端 Windows客户端 ASP.NET程序 任何的客户端
13
日程 Micrsoft .NET 与 Web Services 案例学Web Services 开发 Web Services 开发拾遗
14
Web Services 开发拾遗 同步 VS 异步 启用状态管理 参与使用事务 利用缓存提高Web Services的性能
15
异步 VS 同步 同步 & 异步的概念 同步 VS 异步 异步方法 服务端异步 客户端异步
16
启用状态管理 Application VS Session 启用 EnableSession 访问Application状态
[ WebMethod(EnableSession=true) ] public int PerSessionServiceUsage(){}
17
参与使用事务 基于声名性的事务参与 使用TransactionOption属性 注意:只能作为新事务的根参与事务
[ WebMethod(TransactionOption=TransactionOption.RequiresNew)] public int DeleteAuthor(string lastName){}
18
利用缓存提高Web Services的性能
使用CacheDuration选项
19
总结 Micrsoft .NET 与 Web Services 案例学Web Services 开发 Web Services 开发拾遗
Similar presentations