www.it-ebooks.info a538292 FM.qxd 8/18/03 8:43 AM Page iii XML Programming Bible Brian Benz with John R. Durant www.it-ebooks.info a538292 FM.qxd 8/18/03 8:43 AM Page ii www.it-ebooks.info a538292 FM.qxd 8/18/03 8:43 AM Page i XML Programming Bible www.it-ebooks.info a538292 FM.qxd 8/18/03 8:43 AM Page ii www.it-ebooks.info a538292 FM.qxd 8/18/03 8:43 AM Page iii XML Programming Bible Brian Benz with John R. Durant www.it-ebooks.info a538292 FM.qxd 8/18/03 8:43 AM Page iv XML Programming Bible Published by Wiley Publishing, Inc. 909 Third Avenue New York, NY 10022 www.wiley.com Copyright (c) 2003 by Wiley Publishing, Inc., Indianapolis, Indiana Published by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada Library of Congress Cataloging-in-Publication Data: 2003101925 ISBN: 0-7645-3829-2 Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 1O/QT/QZ/QT/IN No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8700. Requests to the Publisher for permission should be addressed to the Legal Department, Wiley Publishing, Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4447, E-Mail: [email protected]. LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: WHILE THE PUBLISHER AND AUTHOR HAVE USED THEIR BEST EFFORTS IN PREPARING THIS BOOK, THEY MAKE NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS OF THIS BOOK AND SPECIFICALLY DISCLAIM ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. NO WARRANTY MAY BE CREATED OR EXTENDED BY SALES REPRESENTATIVES OR WRITTEN SALES MATERIALS. THE ADVICE AND STRATEGIES CONTAINED HEREIN MAY NOT BE SUITABLE FOR YOUR SITUATION. YOU SHOULD CONSULT WITH A PROFESSIONAL WHERE APPROPRIATE. NEITHER THE PUBLISHER NOR AUTHOR SHALL BE LIABLE FOR ANY LOSS OF PROFIT OR ANY OTHER COMMERCIAL DAMAGES, INCLUDING BUT NOT LIMITED TO SPECIAL, INCIDENTAL, CONSEQUENTIAL, OR OTHER DAMAGES. For general information on our other products and services or to obtain technical support, please contact our Customer Care Department within the U.S. at (800) 762-2974, outside the U.S. at (317) 572-3993 or fax (317) 572-4002. Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books. Trademarks:Wiley, the Wiley logo, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates, in the United States and other countries, and may not be used without written permission. All other trademarks are the property of their respective owners. Wiley Publishing, Inc. is not associated with any product or vendor mentioned in this book. is a trademark of Wiley Publishing, Inc. www.it-ebooks.info a538292 FM.qxd 8/18/03 8:43 AM Page v About the Authors Brian Benz([email protected]) has more than 15 years experience designing and deploying systems infrastructures, designing and developing applications, migrating messaging systems and applications, and managing projects. He has established his expertise and reputation in the XML and Web service marketplace since 1998 through hands-on experience in various projects. Brian also makes frequent contributions as a writer for industry publications, including the IBM Redbook XML: Powered by Domino, The Notes and Domino 6 Programmer’s Bible, Lotus Advisor magazine, e-Business Advisor magazine, WebSphere Advisor maga- zine, and e-Pro magazine. He is also a frequent presenter of highly rated technical seminars for IBM, Lotus Software, and Advisor Media at venues worldwide. Brian isCEO of Benz Technologies (http://www.benztech.com). John R. Durant([email protected]) is the site manager for Microsoft’s Office Developer Center (http://msdn.microsoft.com/office). He is a noted author andspeaker on Microsoft Office, Microsoft .NET, XML, Microsoft SharePoint, COM technologies, and enterprise development. He has authored magazine articles, courseware, and other materials on these same topics, and has traveled the world speaking to developers and other professionals about how these technologies work. Before joining Microsoft, he was employed independently, delivering customer solutions. He lives in the Seattle area with his beautiful wife and four boys. Contributor Tod Goldinghas been a professional programmer since 1986 working in a variety of roles ranging from Software Engineer to Lead Architect for organiza- tions of all shapes and sizes, including Microsoft and Borland. His programming skills span the spectrum of technologies and programming languages and include designing and constructing large-scale systems using both the Microsoft and Java(J2EE) platforms. His language experience has focused primarily on C++, Java, and C#. His chapters in this book cover Java Web Services, the details of Apache’s Axis, JAX-RPC, and JAXM. He started his writing career as a journalist, writing sports for 2 years at the Sacramento Beedaily newspaper, and he has authored a number of white papers assessing the relative strengths of competing technologies. www.it-ebooks.info a538292 FM.qxd 8/18/03 8:43 AM Page vi Credits Executive Editor Project Coordinator Chris Webb Kristie Rees Senior Acquisitions Editor Graphics and Production Specialists Sharon Cox Amanda Carter Jennifer Click Acquisitions Editor Sean Decker Jim Minatel Michael Kruzil Lynsey Osborn Project Editor Kenyon Brown Quality Control Technicians JohnTyler Connoley Technical Editor John Greenough Sundar Rajan Carl William Pierce Kathy Simpson Copy Editor Brian H. Walls Anne L. Owen Proofreading and Indexing Editorial Manager TECHBOOKS Production Services Mary Beth Wakefield Vice President & Executive Group Publisher Richard Swadley Vice President and Executive Publisher Bob Ipsen Executive Editorial Director Mary Bednarek www.it-ebooks.info a538292 FM.qxd 8/18/03 8:43 AM Page vii Dedicated to Hans Benz (1941-2003), father, son, brother, and storyteller —Brian Benz Dedicated to Jack T. and Teresa E. Durant —John R. Durant www.it-ebooks.info