List of Listings

Chapter 1: Creating and Managing Windows Services

Listing 1.1: Default Code for a Windows Service Application
Listing 1.2: Component Designer Generated Code
Listing 1.3: A Procedure to List All Services Running on the Local Computer
Listing 1.4: The OnCustomCommand Procedure
Listing 1.5: Executing a Custom Command

Chapter 2: Creating and Managing Serviced Components

Listing 2.1: Creating a Class for Use as a Serviced Component
Listing 2.2: Calling the ContextUtil Methods
Listing 2.3: Instantiating an Object from a COM Class
Listing 2.4: Calling a Function in an Unmanaged DLL

Chapter 3: Creating and Managing .NET Remoting Objects

Listing 3.1: Registering a TCPChannel
Listing 3.2: Registering an HTTPChannel
Listing 3.3: Overriding MarshalByRefObject.InitializeLifetimeService
Listing 3.4: The Complete Code for the TimeHost Module in Exercise 3.2
Listing 3.5: The Client Application
Listing 3.6: A Server-Side Configuration File
Listing 3.7: Client-Side Configuration Options
Listing 3.8: Instantiating a Remote Object That Uses a Configuration File
Listing 3.9: Asynchronous Calls

Chapter 4: Creating and Managing XML Web Services

Listing 4.1: The Complete Code for the SquareRootService
Listing 4.2: The .disco File for the SquareRootService
Listing 4.3: The SquareRootService.vsdisco File
Listing 4.4: The Methods That Are Automatically Generated in the Proxy Class
Listing 4.5: Calling an XML Web Service Method Asynchronously
Listing 4.6: Adding the SoapHeader Class and Attributes to XML Web Service Code
Listing 4.7: Additions to the Auto-Generated Proxy Class
Listing 4.8: Setting a Value for the SOAP Header in Client Code
Listing 4.9: Modifying the XML Web Service Code to Retrieve the SOAP Header Value

Chapter 5: Working with the .NET Data Providers

Listing 5.1: A Typical SqlClient Connection String
Listing 5.2: Creating a Connection and Command
Listing 5.3: Creating a DataReader and Retrieving Column Values
Listing 5.4: The Complete Code for the Page_Load Event Procedure for Exercise 5.1
Listing 5.5: Using the ExecuteNonQuery Method
Listing 5.6: Using the ExecuteScalar Method
Listing 5.7: The byroyalty Stored Procedure from the pubs Sample Database
Listing 5.8: Calling a Stored Procedure with an Input Parameter
Listing 5.9: ADO.NET Transactions

Chapter 6: Working with the DataSet

Listing 6.1: Using a DataAdapter to Fill a DataSet
Listing 6.2: Configuring a DataAdapter to Update Data
Listing 6.3: The Complete frmJobs_Load Procedure from Exercise 6.1
Listing 6.4: Handling DataExecptions
Listing 6.5: Creating a ForeignKeyConstraint
Listing 6.6: Creating a UniqueConstraint
Listing 6.7: Creating a DataRelation Object
Listing 6.8: The Complete Code for Exercise 6.4
Listing 6.9: The Wizard-Generated SQL Statements
Listing 6.10: The jobSet XSD Document

Chapter 7: Working With XML Data

Listing 7.1: An XML Data File
Listing 7.2: The XSD Schema for the jobs Table
Listing 7.3: Default XML Format for the DataSet.WriteXml Method
Listing 7.4: Changing the Format of XML Output
Listing 7.5: An XML DiffGram Data File
Listing 7.7: Creating an XML Data File with an XmlTextWriter
Listing 7.8: Loading an XmlDocument
Listing 7.9: Creating a New Element
Listing 7.10: Changing Attribute and Element Values by Using the XmlElement Class
Listing 7.11: Using the DOM Methods SelectNodes and SelectSingleNode
Listing 7.12: Creating an XPathNavigator
Listing 7.13: Validating by Using an XmlValidatingReader
Listing 7.14: Performing XSLT Transformations
Listing 7.15: Using the SqlCommand.ExecuteXMLReader Method

Chapter 8: Testing and Debugging

Listing 8.1: Writing Debug and Trace Messages
Listing 8.2: Using Assertions
Listing 8.3: The ChainStream and ProcessMessage Methods
Listing 8.4: Properties of the SoapExtensionAttribute

Chapter 9: Overview of Security Concepts

Listing 9.1: Imperative Use of the Permission.Demand Method
Listing 9.2: Declarative Use of the Permission.Demand Method
Listing 9.3: Imperative Demand of Role Membership via Permission
Listing 9.4: Imperative Query of Role Membership via Principal.IsInRole
Listing 9.5: Declarative Demand of Role Membership via Permission
Listing 9.6: .NET Enterprise Services Role-Based Security

Chapter 10: Deploying, Securing, and Configuring Windows-Based Applications

Listing 10.1: Using the ServiceInstaller and ServiceProcessInstaller Classes to Create an Installer



MCAD/MCSD(c) Visual Basic. NET XML Web Services and Server Components Study Guide
MCAD/MCSD: Visual Basic .NET XML Web Services and Server Components Study Guide
ISBN: 0782141935
EAN: 2147483647
Year: 2005
Pages: 153

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