Table of Contents

Back Cover

.NET Web Services Solutions offers just what its title states: practical solutions to the real challenges you face as you use .NET to create applications that communicate with web services and—more to the point—to build and deploy web services of your own. By the time you’re done, you’ll understand how the web services platform works, because chapter by chapter you get the hands-on instruction, detailed examples, and inside advice you need to make your project succeed.

For example, you’ll learn to connect to a database using ADO.NET operations, carry out the exchange of binary files, and extend the reach of your web service so that it touches e-mail, fax machines, mobile devices, and remote PCs. You’ll master techniques for making your web service available to other programs—but you’ll also discover ways to control its availability through authentication and encryption.

Kris Jamsa’s expert coverage goes above and beyond by providing advanced optimization tips, including instructions for implementing asynchronous operations. He also shows you a neat trick for calling a web service from within an HTML page using JavaScript. Want an even neater trick? Check out the section on making money with your web service, where you’ll find a billing model that will work for you. The final chapter brings it all together, walking you through a cohesive, highly functional example of an employment web service.

About the Author

Kris Jamsa is the author of over 95 computer books, with cumulative sales numbering in the millions. He holds a B.S. in computer science from the U.S. Air Force Academy, an M.S. in computer science from the University of Nevada-Las Vegas, a Ph.D. in computer science from Arizona State University, and an M.B.A. from San Diego State University. Today, Jamsa is the president of the Jamsa Media Group, a company that focuses on leading-edge technologies and the publication of related books.

.NET Web Services Solutions

Kris Jamsa

Associate Publisher: Joel Fugazzotto
Acquisitions Editor: Denise Santoro Lincoln
Developmental Editor: Tom Cirtin
Production Editor: Donna Crossman
Technical Editor: Acey Bunch
Copyeditor: Linda Stephenson
Compositor: Maureen Forys, Happenstance Type-O-Rama
Graphic Illustrator: Jeff Wilson, Happenstance Type-O-Rama
Proofreaders: Emily Hsuan, Eric Lach, Laurie O’Connell, Yariv Rabinovitch, Nancy Riddiough, Sarah Tannehill
Indexer: Ted Laux
Cover Designer: Carol Gorska/Gorska Design
Cover Photographer: Carlos Navajas, The Image Bank

Copyright © 2003 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved. 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: 2002116880

ISBN: 0-7821-4172-2

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

Transcend Technique is a trademark of SYBEX Inc.

Screen reproductions produced with Collage Complete. Collage Complete is a trademark of Inner Media Inc.

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

To my good friend, Dr. Guy Hodgson,
For your endless support and words of encouragement and your willingness to share your knowledge and expertise.


Although only the author’s name appears on a book’s cover, the publication of a book requires the tireless efforts of a team of talented and dedicated individuals. Please take a moment and turn to this book’s copyright page to view the members of the Sybex team that worked hard on this book.

To start, I want to thank Dr. Rodnay Zaks for the opportunity to work with Sybex on this book. I have great respect for Dr. Zaks both for his ability to drive Sybex for over 25 years and for his technical and business acumen.

Next, I want to thank Denise Lincoln for her patience and support throughout this project. My special thanks also go to Tom Cirtin for his development efforts and to Acey Bunch for his technical-editing expertise. In addition, I appreciate the work of Donna Crossman and Linda Stephenson for managing and editing the book’s manuscript. The efforts of the Sybex team greatly improved this book’s content.