Home Page Icon
Home Page
Table of Contents for
I. AJAX and WCF
Close
I. AJAX and WCF
by Daniel Larson
Developing Service-Oriented AJAX Applications on the Microsoft® Platform
Developing Service-Oriented AJAX Applications on the Microsoft® Platform
SPECIAL OFFER: Upgrade this ebook with O’Reilly
Foreword
Acknowledgments
Introduction
Who This Book Is For
What This Book Is About
What Won’t Be Covered
The Author’s Blog
Companion Content
Hardware and Software Requirements
Find Additional Content Online
Support for This Book
Questions and Comments
I. AJAX and WCF
1. Service-Oriented AJAX Fundamentals
Service-Based AJAX: Architecture Overview
The Client-Side Runtime
The ASP.NET AJAX ScriptManager Control
Page Life Cycle and Sys.Application
Web Requests with Sys.Net.WebRequest
Client-Side Rendering
Introducing Windows Communications Foundation
XML Endpoints with WCF
Updating Data with WCF Services
Summary
2. The AJAX Application Server: Service Orientation and the Windows Communication Foundation
The Benefits of WCF as the AJAX Services Platform
Service Orientation and Service-Based AJAX Applications
WCF Fundamentals
WCF Contracts
WCF Endpoints
WCF Bindings
WCF Behaviors
ASP.NET Runtime Support for WCF Services
Case Study: Introducing the Knowledge Base Reference Application
Contract-Based Service Programming
Implementing Data Schema Through WCF Data Contracts
WCF Security and Authorization with ASP.NET
Web Services for AJAX Using ASP.NET 2.0 ASMX
Summary
3. The AJAX Application Server: Windows Communication Foundation’s Web Programming Model
WCF and the Web Programming Model
Enabling the Web Programming Model
Accessing the Current Web Context from WCF
The REST Architectural Pattern and WCF
Using WebGet for Data Retrieval
Readable URLs and URI Templates
Using the UriTemplate Class to Build URLs
Supporting REST Service Actions with WebInvoke
HTTP Header Processing with the HEAD Verb
HTTP Status Codes
Client-Side Caching with GET
Introducing WCF Syndication Services
Implementing REST Web Services Using ASP.NET 2.0 HTTP Handlers
Summary
II. Practical AJAX
4. The AJAX Runtime with the Microsoft AJAX Library
Understanding the Client-Side Programming Model
Deploying the Runtime with ASP.NET Server Controls
Compiled Script Resources
The Script Manager Programming Model
Object-Oriented JavaScript Fundamentals
The Microsoft Ajax Library JavaScript Type Extensions
The JavaScript Type
JavaScript Namespaces
Types and Inheritance
Summary
5. The Microsoft AJAX Library
The Microsoft AJAX Library Client Framework
JavaScript Base Type Extensions
Array Extensions
Boolean Extensions
Date Extensions
Error Extensions
Creating Errors with Error.create
Number Extensions
Object Extensions
String Extensions
Sys.StringBuilder
Global Types and Objects in the Sys Namespace
Sys.Application
Sys.Debug
Diagnostics with Sys.Debug.trace
Diagnostics with Sys.Debug.traceDump(object, name)
Diagnostics with Sys.Debug.assert(condition, message, displayCaller)
Diagnostics with Sys.Debug.fail()
Sys.Browser
The Network Library in Sys.Net
JavaScript Serialization with Sys.Serialization
Application Services with Sys.Services
Browser Extensions with Sys.UI
Programming DOM Elements with Sys.UI.DomElement
Sys.UI.DomElement.getElementById(id, parent)
Sys.UI.DomElement.getLocation(element)
Sys.UI.DomElement.setLocation(element, Sys.UI.Point)
Sys.UI.DomElement.getBounds(element)
Programming DOM Events with Sys.UI.DomEvent
Coding to Support Visual Studio IntelliSense
Summary
6. AJAX Application Services with Sys.Services
ASP.NET AJAX Application Services with Sys.Services
ASP.NET AJAX Script Initialization and Sys.Services
JavaScript Authentication with Sys.Services
JavaScript Profile Data with Sys.Services
Application Roles and Sys.Services.RoleService
Service-Oriented Application Services over WCF
Customizing WCF Application Services
Summary
III. Applied AJAX
7. Building an AJAX Class Library with Components
Understanding Properties and Events in the AJAX Library
Properties
Events
Developing Components Using the AJAX Library Framework
Passing Context to Event Handlers
Building an Application Services Component
Summary
8. Building AJAX Controls
The Ajax Library Behavior Class
Implementing Custom Behaviors with the AJAX Library
Behavior Class Static Methods
The Ajax Library Control Class
Creating a Custom Control with the AJAX Library
Simple Validation and the propertyChanged Event
Case Study: Creating a Wiki Application Control
Summary
9. AJAX and XSLT
XML Rendering with XSLT
XSLT Basics
Creating an XSLT View
XML on the Client
Building an XML Control
Case Study: Implementing Navigation in the Wiki Application with an Xml Control
Summary
10. AJAX and Browser History
The History Problem
History Support in the Microsoft AJAX Library
History Support with the ScriptManager Control
History Support with the Client-Side Sys.Application Object
Case Study: Adding History to the Wiki Application
Summary
11. Extending SharePoint with Service-Oriented AJAX
Introducing the SharePoint Application Platform
The SharePoint Virtualized Web Application
The Layouts Directory
Web Service Options for SharePoint
The Web Part Application
Deploying Code Through Web Parts
Deploying the AJAX Runtime Through the ScriptManager Control
Sample Application: Creating a Site Chat
Creating the Chat Protocol
Summary
About the Author
Additional Resources for Developers from Microsoft Press
Visual Basic
Visual C#
Web Development
Data Access
.NET Framework
Other Developer Topics
More Great Developer Resources
Developer Step by Step
Developer Reference
Focused Topics
Index
SPECIAL OFFER: Upgrade this ebook with O’Reilly
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Support for This Book
Next
Next Chapter
1. Service-Oriented AJAX Fundamentals
Part I. AJAX and WCF
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset