ebook img

Developing Web Services with Java APIs for XML PDF

530 Pages·2002·4.7 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Developing Web Services with Java APIs for XML

210_WSDP_FM.qxd 6/5/02 2:20 PM Page i s o l u t i o n s @ s y n g r e s s . c o m With more than 1,500,000 copies of our MCSE, MCSD, CompTIA, and Cisco study guides in print, we continue to look for ways we can better serve the information needs of our readers. One way we do that is by listening. Readers like yourself have been telling us they want an Internet-based ser- vice that would extend and enhance the value of our books. Based on reader feedback and our own strategic plan, we have created a Web site that we hope will exceed your expectations. [email protected] is an interactive treasure trove of useful infor- mation focusing on our book topics and related technologies. The site offers the following features: ■ One-year warranty against content obsolescence due to vendor product upgrades. You can access online updates for any affected chapters. ■ “Ask the Author” customer query forms that enable you to post questions to our authors and editors. ■ Exclusive monthly mailings in which our experts provide answers to reader queries and clear explanations of complex material. ■ Regularly updated links to sites specially selected by our editors for readers desiring additional reliable information on key topics. Best of all, the book you’re now holding is your key to this amazing site. Just go to www.syngress.com/solutions, and keep this book handy when you register to verify your purchase. Thank you for giving us the opportunity to serve your needs. And be sure to let us know if there’s anything else we can do to help you get the maximum value from your investment. We’re listening. www.syngress.com/solutions 210_WSDP_FM.qxd 6/5/02 2:20 PM Page ii 210_WSDP_FM.qxd 6/5/02 2:20 PM Page iii 1 YEAR UPGRADE BUYER PROTECTION PLAN Developing We b S e r v i c e s with J a v a A P I s for XML Using WSDP Jerry Foster Mick Porter Dreamtech Software, Inc. Natalie Wear Bob Hablutzel Technical Editor 210_WSDP_FM.qxd 6/5/02 2:20 PM Page iv Syngress Publishing,Inc.,the author(s),and any person or firm involved in the writing,editing,or production (collectively “Makers”) of this book (“the Work”) do not guarantee or warrant the results to be obtained from the Work. There is no guarantee of any kind,expressed or implied,regarding the Work or its contents.The Work is sold AS IS and WITHOUT WARRANTY.You may have other legal rights,which vary from state to state. In no event will Makers be liable to you for damages,including any loss of profits,lost savings,or other incidental or consequential damages arising out from the Work or its contents.Because some states do not allow the exclusion or limitation of liability for consequential or incidental damages,the above limitation may not apply to you. You should always use reasonable care,including backup and other appropriate precautions,when working with computers,networks,data,and files. Syngress Media®,Syngress®,“Career Advancement Through Skill Enhancement®,”and “Ask the Author UPDATE®,”are registered trademarks of Syngress Publishing,Inc.“Mission Critical™,”“Hack Proofing®,”and “The Only Way to Stop a Hacker is to Think Like One™”are trademarks of Syngress Publishing,Inc.Brands and product names mentioned in this book are trademarks or service marks of their respective companies. KEY SERIAL NUMBER 001 945T5GHD4T 002 MPET4AKRT4 003 3VN54NMER6 004 B39UNGD3S4 005 U6N7VH8U8M 006 NTE4NFMG4R 007 TBR46TWBVH 008 565M2PRB9R 009 R4BA3N58MS 010 2ZFCG6YTH2 PUBLISHED BY Syngress Publishing,Inc. 800 Hingham Street Rockland,MA 02370 Developing Web Services with Java APIs for XML Using WSDP Copyright © 2002 by Syngress Publishing,Inc.All rights reserved.Printed in the United States of America.Except as permitted under the Copyright Act of 1976,no part of this publication may be reproduced or distributed in any form or by any means,or stored in a database or retrieval system, without the prior written permission of the publisher,with the exception that the program listings may be entered,stored,and executed in a computer system,but they may not be reproduced for publication. Printed in the United States of America 1 2 3 4 5 6 7 8 9 0 ISBN: 1-928994-85-7 Technical Editor:Bob Hablutzel Cover Designer:Michael Kavish Technical Reviewer:Alex Ceponkus Page Layout and Art by:Shannon Tozier Acquisitions Editor:Jonathan Babcock Copy Editor:Mike McGee and Jesse Corbeil Indexer:Jennifer Coker Distributed by Publishers Group West in the United States and Jaguar Book Group in Canada. 210_WSDP_FM.qxd 6/5/02 2:20 PM Page v Acknowledgments We would like to acknowledge the following people for their kindness and support in making this book possible. Ralph Troupe,Rhonda St.John,Emlyn Rhodes,and the team at Callisma for their invaluable insight into the challenges of designing,deploying and supporting world- class enterprise networks. Karen Cross,Lance Tilford,Meaghan Cunningham,Kim Wylie,Harry Kirchner, Kevin Votel,Kent Anderson,Frida Yara,Jon Mayes,John Mesjak,Peg O’Donnell, Sandra Patterson,Betty Redmond,Roy Remer,Ron Shapiro,Patricia Kelly,Andrea Tetrick,Jennifer Pascal,Doug Reil,David Dahl,Janis Carpenter,and Susan Fryer of Publishers Group West for sharing their incredible marketing experience and expertise. Jacquie Shanahan,AnnHelen Lindeholm,David Burton,Febea Marinetti,and Rosie Moss of Elsevier Science for making certain that our vision remains worldwide in scope. Annabel Dent and Paul Barry of Elsevier Science/Harcourt Australia for all their help. David Buckland,Wendi Wong,Marie Chieng,Lucy Chong,Leslie Lim,Audrey Gan, and Joseph Chan of Transquest Publishers for the enthusiasm with which they receive our books.And welcome back to Daniel Loh—glad to have you back Daniel! Kwon Sung June at Acorn Publishing for his support. Ethan Atkin at Cranbury International for his help in expanding the Syngress program. Jackie Gross,Gayle Voycey,Alexia Penny,Anik Robitaille,Craig Siddall,Darlene Morrow,Iolanda Miller,Jane Mackay,and Marie Skelly at Jackie Gross & Associates for all their help and enthusiasm representing our product in Canada. Lois Fraser,Connie McMenemy,Shannon Russell,and the rest of the great folks at Jaguar Book Group for their help with distribution of Syngress books in Canada. vv 210_WSDP_FM.qxd 6/5/02 2:20 PM Page vi Contributors Jay Foster has been an IT professional since 1989.His areas of expertise include object-oriented design and modeling,software engineering,Web based application design/development,extranet/intranet security,and N- tier application development.He has extensive experience in the fol- lowing technologies:Java Servlets,Enterprise JavaBeans (EJB),Java Server Pages (JSP),Java Database Connectivity (JDBC),Remote Method Invocation (RMI),Java Foundation Classes (JFC),Swing,OOA/OOD/ OOP using the Unified Modeling Language (UML),CORBA,Web Services,.NET Framework,C#,ASP.NET,Web Security and Enterprise Application Integration.Jay has been developing object-oriented systems in Java since 1996 and is a Sun Certified Java Programmer.Jay has authored several books on various Java programming topics. Mick Porter (SSJCP,MCP) is a Senior Technical Architect for Logica,a global systems integrator.Mick specializes in the design and implementa- tion of wireless and mobile commerce systems.With 15 years of experi- ence in the IT industry,Mick has worked on an enormous variety of systems and projects,and over the last few years,he has delivered a number of major e-commerce systems.Mick holds a bachelor’s degree in Computer Science,and became a Sun Certified Java Programmer five years ago,as well as having passed eight Microsoft Certified Professional exams.Mick lives in Sydney,Australia,with his wife,Andrea,and children, Holly and Anthony. Jonothon Ortiz is Vice President of Xnext,Inc.in Winter Haven,FL. Xnext,Inc.is a small,privately owned company that develops Web sites and applications for prestigious companies such as the New York Times.He has been a professional developer for over nine years now and has been exposed to a wide range of programming languages and styles.He uses JSP extensively to perform transformations of XML data in conjunction with other languages.Jonothon lives with his wife,Carla,in Lakeland,FL. vi 210_WSDP_FM.qxd 6/5/02 2:20 PM Page vii Dreamtech Software India Inc. is a software solution and service provider that provides a broad range of services and offers a dynamic blend of consultancy and system integration to help corporations build and implement innovative e-business strategies.A futuristic vision moti- vates the globally acclaimed software products of Dreamtech Software. Dreamtech has already distinguished itself with an excellent track record of publishing books on advanced technologies including XML and XSLT, WAP,Bluetooth,3G ,peer-to-peer networking,C#,and Java.The success of Dreamtech’s endeavors to provide world-class software products can be gauged by the fact that its clientele includes some of the most distin- guished names in IT-related publishing and solutions. Natalie S.Wear is a Senior Java Developer and Systems Engineer at Telecommunications Services,Inc.in Tampa,FL.She creates code designs, provides architecture recommendations,and writes software for the Java applications used within her department.Such applications are primarily centered on back-end integration using XML and wireless industry-stan- dard APIs.Her specialties include e-commerce,CORBA implementation, back-end system integration,and internet/intranet development.Natalie’s background includes positions as Senior Java Engineer at Verizon Wireless and as an instructor of Vitria at PriceWaterhouseCoopers,LLP.She also teaches an undergraduate course on Java at the University of South Florida.Natalie holds a bachelor’s degree in Political Science and another bachelor’s degree in Management Information Systems (MIS) from the University of South Florida.She holds a master’s degree in Business Administration (MBA) from the University of South Florida. Greg Bylenok is a Software Engineer with iConverse.In his role at iConverse,Greg is involved in the design and development of products for the mobile industry.He has been using Java,J2EE,and XML tech- nologies in his daily work for over three years. vii 210_WSDP_FM.qxd 6/5/02 2:20 PM Page viii Technical Editor and Contributor Bob Hablutzel is a Senior Consultant with 20 years experience in enterprise-scale software systems.He is currently a Founding Partner in InflexionPoint,a consultancy whose practice spans the full cycle of a soft- ware product,from business needs analysis through architecture,develop- ment,debugging,and deployment.Bob is particularly interested in the efficiency and accuracy of large systems and has advised numerous pro- jects on the identification and elimination of bottlenecks and errors.His background also includes time as CTO and Principle Architect of various startup companies.Bob’s Web Services experience includes being a founding member of the XAML (XML-based business transactions) working group and implementing high-availability and clustering for the Bowstreet XML-based application server.His Java experience includes implementation of Java bytecode compilers and contributing to the book Sun Certified Programmer for Java 2.Bob lives in New Hampshire with his wife,Trish,and daughters,Anna and Katie. viii 210_WSDP_TOC.qxd 6/5/02 12:55 PM Page ix Contents Foreword xxiii Answers to You Chapter 1 Introduction to the JWSDP 1 Frequently asked Introduction 2 Questions JWSDP History 3 JAXP 3 Q: What is the JWSDP? JAXM 4 A: The JWSDP is a JAX-RPC 5 collection of libraries, JAXR 6 tools, and standard interfaces designed to JSSE 6 ease the development JSTL 7 of XML-based Web Ant and Tomcat 7 services in the Java programming Summary 9 language. Solutions Fast Track 9 Frequently Asked Questions 12 Chapter 2 Processing XML Documents with SAX 13 Introduction 14 Understanding Event-Based XML Parsing 14 The SAX Event Model 15 Overview of Event Processing 15 History of SAX 16 Basic SAX Events 17 Example Parse Events 18 Understanding Event Handlers 18 Overview of Handlers 18 Basic SAX Callbacks 19 Example Event Handler 22 ix

Description:
JWSDP is Sun Microsystem's all-in-one development kit that utilizes XML to build cross-platform Web Services. Bundling the Java XML technologies together into JWSDP ensures developers a quick and easy development cycle for integration of XML into the Java platform. This is the first book to detail a
See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.