Table of Contents

mcad/mcsd: visual basic .net xml web services and server components study guide
MCAD/MCSD: Visual Basic .NET XML Web Services and Server Components Study Guide
by Pamela Fanstill, Brian Reisman and Mitch Ruebush ISBN:0782141935
Sybex © 2003 (598 pages)

This book prepares you for Developing XML Web Services and Server Components with Microsoft Visual Basic .NET and the Microsoft .NET Framework exam (70-310).

Table of Contents
MCAD/MCSD—Visual Basic .NET XML Web Services and Server Components Study Guide
Introduction
Assessment Test
Chapter 1 - Creating and Managing Windows Services
Chapter 2 - Creating and Managing Serviced Components
Chapter 3 - Creating and Managing .NET Remoting Objects
Chapter 4 - Creating and Managing XML Web Services
Chapter 5 - Working with the .NET Data Providers
Chapter 6 - Working with the DataSet
Chapter 7 - Working With XML Data
Chapter 8 - Testing and Debugging
Chapter 9 - Overview of Security Concepts
Chapter 10 - Deploying, Securing, and Configuring Windows-Based Applications
Chapter 11 - Deploying and Securing XML Web Services
Glossary
Index
List of Figures
List of Tables
List of Listings
List of Exercises
List of Sidebars

mcad/mcsd: visual basic .net xml web services and server components study guide
MCAD/MCSD: Visual Basic .NET XML Web Services and Server Components Study Guide
by Pamela Fanstill, Brian Reisman and Mitch Ruebush ISBN:0782141935
Sybex © 2003 (598 pages)

This book prepares you for Developing XML Web Services and Server Components with Microsoft Visual Basic .NET and the Microsoft .NET Framework exam (70-310).

Here’s the book you need to prepare for the Developing XML Web Services and Server Components with Microsoft Visual Basic .NET and the Microsoft .NET Framework exam (70-310). This Study guide provides:

  • In-depth coverage of official exam objectives
  • Practical information on Web services and server components
  • Hands-on exercises designed to give you the skills needed to approach the exams with confidence

Authoritative coverage of all exam objectives, including:

  • Creating and managing Microsoft Windows services, serviced components, .NET remoting objects, and XML Web services
  • Consuming and manipulating data
  • Testing and Debugging
  • Deploying Windows services, serviced components, .NET Remoting Objects, and XML Web Services

About the Authors

Pamela Fanstill, MCSD, MCT, has over 20 years’ experience in IT. She is a full-time trainer, specializing in Visual Basic, XML, Active Server Pages, and SQL Server. Pam is also a technical contributor for Microsoft’s Certification and Training group. Brian Reisman, MCSD, MCT, is one of the few MCTs approved to present the Microsoft .NET Developer Training Tour. Mitch Ruebush, MCSD, MCT, has over 20 years IT experience, and has been working with Visual Basic since version 3. Both Brian and Mitch are co-authors of MCAD/MCSD: Visual Basic .NET Windows and Web Application Study Guide from Sybex.

MCAD/MCSD-Visual Basic .NET XML Web Services and Server Components Study Guide

Pamela Fanstill
with Brian Reisman
and Mitch Ruebush

Associate Publisher: Neil Edde
Acquisitions and Developmental Editor: Jeff Kellum
Production Editor: Liz Burke
Technical Editor: Helen O'Boyle, Gord Maric, Mike Stover
Copyeditor: Sharon Wilkey
Compositor: Interactive Composition Corporation
Graphic Illustrator: Interactive Composition Corporation
CD Coordinator: Dan Mummert
CD Technician: Kevin Ly
Proofreaders: Nancy Riddiough, Sarah Tannehill, Emily Hsuan
Indexer: Ted Laux
Book Designer: Bill Gibson
Cover Designer: Archer Design
Cover Illustrator/Photographer: Georgette Douwma, FPG International

Copyright © 2003 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved. (for books with reusable code on the CD) The author(s) created reusable code in this publication expressly for reuse by readers. Sybex grants readers limited permission to reuse the code found in this publication or its accompanying CD-ROM so long as the author(s) are attributed in any application containing the reusable code and the code itself is never distributed, posted online by electronic transmission, sold, or commercially exploited as a stand-alone product. Aside from this specific exception concerning reusable code, no part of this publication may be stored in a retrieval system, transmitted, or reproduced in any way, including but not limited to photocopy, photograph, magnetic, or other record, without the prior agreement and written permission of the publisher.

Library of Congress Card Number: 2002116885

ISBN: 0-7821-4193-5

SYBEX and the SYBEX logo are either registered trademarks or trademarks of SYBEX Inc. in the United States and/or other countries.

Screen reproductions produced with FullShot 99. FullShot 99 © 1991-1999 Inbit Incorporated. All rights reserved.

FullShot is a trademark of Inbit Incorporated.

The CD interface was created using Macromedia Director, COPYRIGHT 1994, 1997-1999 Macromedia Inc. For more information on Macromedia and Macromedia Director, visit http://www.macromedia.com.

Internet screen shot(s) using Microsoft Internet Explorer 6.0 reprinted by permission from Microsoft Corporation.

Microsoft® Internet Explorer © 1996 Microsoft Corporation. All rights reserved. Microsoft, the Microsoft Internet Explorer logo, Windows, Windows NT, and the Windows logo are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries.

SYBEX is an independent entity from Microsoft Corporation, and not affiliated with Microsoft Corporation in any manner. This publication may be used in assisting students to prepare for a Microsoft Certified Professional Exam. Neither Microsoft Corporation, its designated review company, nor SYBEX warrants that use of this publication will ensure passing the relevant exam. Microsoft is either a registered trademark or trademark of Microsoft Corporation in the United States and/or other countries.

TRADEMARKS: SYBEX has attempted throughout this book to distinguish proprietary trademarks from descriptive terms by following the capitalization style used by the manufacturer.

The author and publisher have made their best efforts to prepare this book, and the content is based upon final release software whenever possible. Portions of the manuscript may be based upon pre-release versions supplied by software manufacturer(s). The author and the publisher make no representation or warranties of any kind with regard to the completeness or accuracy of the contents herein and accept no liability of any kind including but not limited to performance, merchantability, fitness for any particular purpose, or any losses or damages of any kind caused or alleged to be caused directly or indirectly from this book.

Manufactured in the United States of America

10 9 8 7 6 5 4 3 2 1

Software License Agreement: Terms and Conditions

The media and/or any online materials accompanying this book that are available now or in the future contain programs and/or text files (the 'Software') to be used in connection with the book. SYBEX hereby grants to you a license to use the Software, subject to the terms that follow. Your purchase, acceptance, or use of the Software will constitute your acceptance of such terms.

The Software compilation is the property of SYBEX unless otherwise indicated and is protected by copyright to SYBEX or other copyright owner(s) as indicated in the media files (the 'Owner(s)'). You are hereby granted a single-user license to use the Software for your personal, noncommercial use only. You may not reproduce, sell, distribute, publish, circulate, or commercially exploit the Software, or any portion thereof, without the written consent of SYBEX and the specific copyright owner(s) of any component software included on this media.

In the event that the Software or components include specific license requirements or end-user agreements, statements of condition, disclaimers, limitations or warranties ('End-User License'), those End-User Licenses supersede the terms and conditions herein as to that particular Software component. Your purchase, acceptance, or use of the Software will constitute your acceptance of such End-User Licenses.

By purchase, use or acceptance of the Software you further agree to comply with all export laws and regulations of the United States as such laws and regulations may exist from time to time.

Reusable Code in This Book

The author(s) created reusable code in this publication expressly for reuse by readers. Sybex grants readers limited permission to reuse the code found in this publication, its accompanying CD-ROM or available for download from our website so long as the author(s) are attributed in any application containing the reusable code and the code itself is never distributed, posted online by electronic transmission, sold, or commercially exploited as a stand-alone product.

Software Support

Components of the supplemental Software and any offers associated with them may be supported by the specific Owner(s) of that material, but they are not supported by SYBEX. Information regarding any available support may be obtained from the Owner(s) using the information provided in the appropriate read.me files or listed elsewhere on the media.

Should the manufacturer(s) or other Owner(s) cease to offer support or decline to honor any offer, SYBEX bears no responsibility. This notice concerning support for the Software is provided for your information only. SYBEX is not the agent or principal of the Owner(s), and SYBEX is in no way responsible for providing any support for the Software, nor is it liable or responsible for any support provided, or not provided, by the Owner(s).

Warranty

SYBEX warrants the enclosed media to be free of physical defects for a period of ninety (90) days after purchase. The Software is not available from SYBEX in any other form or media than that enclosed herein or posted to www.sybex.com. If you discover a defect in the media during this warranty period, you may obtain a replacement of identical format at no charge by sending the defective media, postage prepaid, with proof of purchase to:

SYBEX Inc.
Product Support Department
1151 Marina Village Parkway
Alameda, CA 94501
Web: http://www.sybex.com

After the 90-day period, you can obtain replacement media of identical format by sending us the defective disk, proof of purchase, and a check or money order for $10, payable to SYBEX.

Disclaimer

SYBEX makes no warranty or representation, either expressed or implied, with respect to the Software or its contents, quality, performance, merchantability, or fitness for a particular purpose. In no event will SYBEX, its distributors, or dealers be liable to you or any other party for direct, indirect, special, incidental, consequential, or other damages arising out of the use of or inability to use the Software or its contents even if advised of the possibility of such damage. In the event that the Software includes an online update feature, SYBEX further disclaims any obligation to provide this feature for any specific duration other than the initial posting.

The exclusion of implied warranties is not permitted by some states. Therefore, the above exclusion may not apply to you. This warranty provides you with specific legal rights; there may be other rights that you may have that vary from state to state. The pricing of the book with the Software by SYBEX reflects the allocation of risk and limitations on liability contained in this agreement of Terms and Conditions.

Shareware Distribution

This Software may contain various programs that are distributed as shareware. Copyright laws apply to both shareware and ordinary commercial software, and the copyright Owner(s) retains all rights. If you try a shareware program and continue using it, you are expected to register it. Individual programs differ on details of trial periods, registration, and payment. Please observe the requirements stated in appropriate files.

Copy Protection

The Software in whole or in part may or may not be copy-protected or encrypted. However, in all cases, reselling or redistributing these files without authorization is expressly forbidden except as specifically provided for by the Owner(s) therein.

This book is dedicated to Bill Carn, who taught me to have faith in my own abilities. Thank you for all your support over the years.

-Pamela Fanstill

Acknowledgments

I would like to thank the editorial team at Sybex for all their help and guidance and for giving me the opportunity to write my first book. Jeff Kellum, the acquisitions and developmental editor, has been with this project from start to finish. Jeff did a great job of teaching me about the authoring process and how to create logical flow and structure for each chapter and the book as a whole. Liz Burke, the production editor, and Sharon Wilkey, the copyeditor, also made excellent contributions to the accuracy and consistency of this material. Many thanks to all of you.

I also send sincere thanks to my hardworking technical editors, Helen O'Boyle, Mike Stover, and Kyle Burns. They were responsible for testing all of the exercises and code found in the book, and making sure that my facts and explanations were on target. Special thanks to Helen for her security expertise and for making a major contribution by outlining and drafting Chapter 9.

My coauthors, Brian Reisman and Mitch Ruebush, also have my deepest gratitude, for stepping in late in the process (after just completing work on their own book) to take over Chapters 10 and 11 and to keep our schedule on track.

I would also like to thank some friends who provided the encouragement to undertake this project in the first place. My discussions with Joe Karam over the years have spurred my interest in the newest technologies and encouraged me to focus my work in the .NET direction. Joe also helped me to clarify my approach to the material in this book and provided feedback on my first drafts. Tcat Houser is my friend and coach, who kept me laughing and helped me with the many challenges I faced in completing this work.

I would also like to thank my family-my mother, Marion Fanstill, and my son, Tobias Ritter, for their support and understanding during this project.

To Our Valued Readers:

Thank you for looking to Sybex for your Microsoft certification exam prep needs. We at Sybex are proud of the reputation we've established for providing certification candidates with the practical knowledge and skills needed to succeed in the highly competitive IT marketplace.

We believe that the MCSD program, recently updated for Visual Studio .NET, better reflects the skill set demanded of developers in today's marketplace and offers candidates a clearer structure for acquiring the skills necessary to advance their careers. And with their recent creation of the MCAD program, Microsoft programmers can now choose to pursue the certification that best suits their career goals.

Just as Microsoft is committed to establishing measurable standards for certifying developers, Sybex is committed to providing those professionals with the means of acquiring the skills and knowledge they need to meet those standards.

The Sybex team of authors, editors, and technical reviewers have worked hard to ensure that this Study Guide is comprehensive, in-depth, and pedagogically sound. We're confident that this book, along with the collection of cutting-edge software study tools included on the CD, will meet and exceed the demanding standards of the certification marketplace and help you, the Microsoft certification exam candidate, succeed in your endeavors.

Good luck in pursuit of your MCAD or MCSD certification!

Neil Edde
Associate Publisher-Certification
Sybex, Inc.

MCAD/MCSD: Visual Basic .NET XML Web Services and Server Components Study Guide Exam 70-310

Objective

Chapter

Creating and Managing Microsoft Windows® Services, Serviced Components, .NET Remoting Objects, and XML Web Services

 

Create and manipulate a Windows service.

Write code that is executed when a Windows service is started or stopped.

1

Create and consume a serviced component.

Implement a serviced component; Create interfaces that are visible to COM; Create a strongly named assembly; Register the component in the global assembly cache; Manage the component by using the Component Services tool.

2

Create and consume a .NET Remoting object.

Implement server-activated components; Implement client-activated components; Select a channel protocol and a formatter. Channel protocols include TCP and HTTP. Formatters include SOAP and binary; Create client configuration files and server configuration files; Implement an asynchronous method; Create the listener service; Instantiate and invoke a .NET Remoting object.

3

Create and consume an XML Web service.

Control characteristics of Web methods by using attributes; Create and use SOAP extensions; Create asynchronous Web methods; Control XML wire format for an XML Web service; Instantiate and invoke an XML Web service.

4

Implement security for a Windows service, a serviced component, a .NET Remoting object, and an XML Web service.

1, 9

Access unmanaged code from a Windows service, a serviced component, a .NET Remoting object, and an XML Web service.

2

Consuming and Manipulating Data

Access and manipulate data from a Microsoft SQL Server™ database by creating and using ad hoc queries and stored procedures.

5

Create and manipulate DataSets.

Manipulate a DataSet schema; Manipulate DataSet relationships; Create a strongly typed DataSet.

6, 7

Access and manipulate XML data.

Access an XML file by using the Document Object Model (DOM) and an XmlReader; Transform DataSet data into XML data; Use XPath to query XML data; Generate and use an XSD schema; Write a SQL statement that retrieves XML data from a SQL Server database; Update a SQL Server database by using XML; Validate an XML document.

7

Testing and Debugging

Create a unit test plan.

8

Implement tracing.

Configure and use trace listeners and trace switches; Display trace output.

8

Instrument and debug a Windows service, a serviced component, a .NET Remoting object, and an XML Web service.

Configure the debugging environment; Create and apply debugging code to components and applications; Provide multicultural test data to components and applications; Execute tests.

1, 8

Use interactive debugging.

8

Log test results.

Resolve errors and rework code; Control debugging in the Web.config file; Use SOAP extensions for debugging.

8

Deploying Windows Services, Serviced Components, .NET Remoting Objects, and XML Web Services

Plan the deployment of and deploy a Windows service, a serviced component, a .NET Remoting object, and an XML Web service.

10

11

Create a setup program that installs a Windows service, a serviced component, a .NET Remoting object, and an XML Web service.

Register components and assemblies.

10

11

Publish an XML Web service.

Enable static discovery; Publish XML Web service definitions in the UDDI.

11

Configure client computers and servers to use a Windows service, a serviced component, a .NET Remoting object, and an XML Web service.

1

Implement versioning.

10

Plan, configure, and deploy side-by-side deployments and applications.

10

Configure security for a Windows service, a serviced component, a .NET Remoting object, and an XML Web service

Configure authentication type. Authentication types include Windows authentication, Microsoft .NET Passport, custom authentication, and none; Configure and control authorization. Authorization methods include file-based authorization and URL-based authorization; Configure and implement identity management.

9

10

Note 

Exam objectives are subject to change at any time without prior notice and at Microsoft's sole discretion. Please visit Microsoft's Web site (www.microsoft.com/traincert) for the most current listing of exam objectives.