List of Code Examples


Chapter 2: SRF Files

Example 2.1: Simple If Usage in a Hello World SRF File
Example 2.2: Simple If/Else Usage in an SRF File
Example 2.3: Using If/Else to Control Permissions in a Simple SRF File

Chapter 4: Introduction to ISAPI Services

Example 4.1: A Simple Counter
Example 4.2: Making the Counter As a Service
Example 4.3: Consuming the Service

Chapter 6: Getting User Input

Example 6.1: Source for a Simple Server Response File (SRF)
Example 6.2: Display All Input Values in ValidateAndExchange
Example 6.3: Display a Specific Input Value in ValidateAndExchange
Example 6.4: Validating Input in ValidateAndExchange
Example 6.5: Using a Validation Context in ValidateAndExchange
Example 6.6: Source for SRF That Requires Validation

Chapter 7: Deploying an ATL Server Web Application

Example 7.1: Example Vcdeploy XML Configuration File
Example 7.2: Vcdeploy Configuration File for Sending an ISAPI DLL and Registering Against It

Chapter 8: Cookies and Session State

Example 8.1: Declaration of an ATL Server ISAPI Extension Handler
Example 8.2: ValidateAndExchange Implementation
Example 8.3: Using Database-Backed Session State

Chapter 9: Perfmon

Example 9.1: Custom ISAPI Extension Class
Example 9.2: Interface for a Simple Counter
Example 9.3: Initializing the Counter

Chapter 10: Web Services

Example 10.1: A Simple WSDL Document
Example 10.2: Hello World Web Service
Example 10.3: Sample Web Service Using Variable-Sized Arrays
Example 10.4: Sample Web Service Using Multidimensional Arrays
Example 10.5: Sample Web Service Using Structs
Example 10.6: Sample Web Service Using a Struct That Contains a Variable-Sized Array
Example 10.7: Sample Web Service Using Enums
Example 10.8: Sample Web Service Using ATLSOAP_BLOB
Example 10.9: Illegal Input Header
Example 10.10: Sample Web Service Using SOAP Headers
Example 10.11: Sample Web Service Using a Custom SOAP Fault
Example 10.12: Sample Web Service Using the GenerateFault Method to Return a SOAP Fault
Example 10.13: Managing Array Memory on the Client
Example 10.14: Managing Struct Memory on the Client
Example 10.15: Cleaning Up Arrays of Structs
Example 10.16: Using SOAP Fault Information on the Client

Chapter 12: Caching

Example 12.1: BLOB Cache Extension
Example 12.2: Weather Data Memory Cache Client
Example 12.3: Modified Request Handler
Example 12.4: Definition of CBlobCacheEx
Example 12.5: Modified ISAPI Extension
Example 12.6: Modified Request Handler Using the New Cache

Chapter 16: Database Access with ATL Server

Example 16.1: The Products.h File
Example 16.2: Using the ATL Server Data Source Cache
Example 16.3: Modifications to the Generated OLE DB Consumer Template Code
Example 16.4: Reading Data from the Data Source

Chapter 17: Advanced SRF

Example 17.1: Overridden ParseToken Method
Example 17.2: Overridden FinishParseReplacements Method
Example 17.3: Overridden RenderToken Method
Example 17.4: Rendering the if_not Tag
Example 17.5: Rendering the if_and Tag
Example 17.6: Overriding the StencilType Template Parameter

Chapter 18: Advanced Request Handlers

Example 18.1: Implementing a Dynamic Thread Pool Class

Chapter 19: Advanced Web Services

Example 19.1: An Attributed COM Object
Example 19.2: A Dual COM Object and Web Service
Example 19.3: Web Service Using an Enumeration
Example 19.4: Web Service Using Structs
Example 19.5: Web Service Functioning as a Scriptable Object in JScript
Example 19.6: Web Service Functioning as a Scriptable Object
Example 19.7: Determining the Method of Invocation
Example 19.8: Demonstration of Determining the Method of Invocation in COM
Example 19.9: Demonstration of Determining the Method of Invocation in SOAP
Example 19.10: Returning a Custom Error Using IErrorInfo
Example 19.11: Retrieving Custom Error Information from IErrorInfo
Example 19.12: SOAP Request Packet
Example 19.13: SOAP Response Packet
Example 19.14: Definition of the _soapmap Struct
Example 19.15: Definition of the _soapmapentry Struct
Example 19.16: Definition of the ParseState Struct
Example 19.17: The HelloWorld Web Service
Example 19.18: Invocation of User Code
Example 19.19: Web Service Using an Enumeration
Example 19.20: Injected Code for a Web Service Using an Enumeration
Example 19.21: Web Service Using a Struct
Example 19.22: Injected Code for a Web Service Using a Struct
Example 19.23: SOAP Request
Example 19.24: SOAP Response

Chapter 21: ATL Server and Passport .NET

Example 21.1: Declaration of a Passport-Enabled Request Handler
Example 21.2: Initializing Passport Manager
Example 21.3: GetURL Implementation
Example 21.4: The OnLogoTag Method
Example 21.5: Authenticating a Passport Login Request
Example 21.6: Getting Passport Profile Information
Example 21.7: The Complete Example
Example 21.8: Using a Passport-Enabled Request Handler in SRF

Chapter 23: Extensibility of ATL Server Web Services

Example 23.1: SOAP Payload of a Request Containing an XML Document (Highlighted in Bold)
Example 23.2: SOAP Payload of a Response Containing Results of Parsing the XML Document of Listing 23-1
Example 23.3: Free Text Description of the XML Document Sent As a Request Parameter

Chapter 24: SMTP and MIME Support in ATL Server

Example 24.1: Initializing a Connection to an SMTP Server
Example 24.2: Using Base64Encode to Encode a Piece of Data
Example 24.3: Definition of CMimeBodyPart
Example 24.4: Definition of CMimeTextEx
Example 24.5: Extending CMimeMessageEx to Allow HTML
Example 24.6: The Complete Example
Example 24.7: Sending an SMTP Message
Example 24.8: A Simple Application for Processing a Delivery Queue

Chapter 25: Developing HTTP Client Applications in ATL Server

Example 25.1: ValidateAndExchange Implementation That Iterates the Request Parameters
Example 25.2: Using CHttpRequestParams for Generating a Collection of HTTP POST Parameters
Example 25.3: Using CHttpRequestParams for Generating a Collection of HTTP GET Parameters

Chapter 26: Securing Your Web Application

Example 26.1: Confirming That NTLM Authentication Is Being Used
Example 26.2: Verifying the Use of Basic Authentication
Example 26.3: The Client Side of Basic Authentication



ATL Server. High Performance C++ on. NET
Observing the User Experience: A Practitioners Guide to User Research
ISBN: B006Z372QQ
EAN: 2147483647
Year: 2002
Pages: 181

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net