BEA WebLogic Workshop Kick Start

Joseph Weber / Mark Wutka
September 2002
Related Titles


Der Titel ist leider nicht mehr lieferbar. Sorry, This title is no longer available. Malheureusement ce titre est épuisé.




Table of Contents



1. Introduction to Web Services.

What Are Web Services? Examples of Web Services. Advantages of Web Services. Disadvantages of Web Services. The Web Service Protocols. Why Use WebLogic Workshop?

2. The WebLogic Workshop.

Verify That Everything Is Functional. Overview of the Workshop Environment. Changing the Workshop Environment.

3. Building an Application in WebLogic Workshop.

Creating a Project. Creating the HelloWorld Service. Testing Your New Service. Passing Information to the Service. The JWS File. Adding Methods in Code. Adding a Description.

4. Developing Conversant Applications.

Conversations. A Two-Stage Conversation. Testing HelloConversation. Why Is Asynchronous Activity Different from Synchronous Activity? Limitations and Advantages. What Makes HelloConversation Synchronous? HelloConversation as an Asynchronous Conversation. Adding a Callback. Testing HelloConversationAsync. Buffering a Callback. Timeout Parameters. Cleaning Up After Your Conversation Ends.


5. Controls.

Using a Timer. Creating HelloDelayed. Testing HelloDelayed. Stopping the Timer. Defining a Timer Control in Code. Adjusting Timing Defaults Programmatically. Restarting the Timer. Obtaining Time at Event. Broadcast Date Example. HelloWorld as a Service. Handling Callbacks from CTRLs.

6. The Database Control.

Creating a Database Control. Defining a Database Connection. Creating an SQL String. Including Variables. Getting a Result Set. Executing Multiple Statements. A Sample Application.

7. Debugging.

Debugging in WebLogic Workshop. Debugging a Web Service. Variables. The Call Stack.


8. Creating a Map.

Customizing XML Content. Building XML Maps Using Workshop. XML Map Elements. Storing Maps in External Files. Using XMLScript.

9. Messaging Using JMS.

Connections and Connection Factories. Sessions. Sending and Receiving. Using the JMS Control. JMS JavaDoc Options. Sending XML Messages.

10. Including an EJB Control.

EJB Overview. Including an EJB in Your Workshop Project. An EJB Control Example. EJB JavaDoc Options.

11. Accessing Web Services from Java.

The Client Side of Web Services. Java Proxy Details. JavaServer Pages and the Java Proxy. Using the Proxy Outside the WebLogic Environment. Changing the Web Service Location.

12. <64>jws JavaDoc Tags.

Method Tags. Control Tags. Defining Filewide Enhancements.

13. An Online Ordering System.

Designing an Ordering System. Working with the Database. Creating the OrderEntry Service. Creating the OrderTracking Service.


Appendix A: Java Essentials

Your First Java Program. Declaring Variables. Operators. Conversions. Classes and Objects. Control Flow. Exceptions. Interfaces. Packages. Common Java Packages. Where to Go from Here.

Appendix B: XML

What Is XML? XML Basics. XML Schema. Related XML Specifications.

Appendix C: Web Service Description Language (WSDL).

History of WSDL. WSDL in Workshop. Obtaining the WSDL Definition for Any Service in Workshop. Utilizing an External Web Service When You Have Its WSDL URL. Creating a Service That Complies with a WSDL File. WSDL Definition. Communication Processes. Types. Messages. Operations. Port Type. Binding. Port Service.

Appendix D: SOAP.

SOAP Message Exchange. Web Services and SOAP. SOAP Message Format. SOAP Data Encoding. SOAP over HTTP. SOAP Headers.


Back Cover

BEA WebLogic Workshop is a rapid application development tool that makes building Java-based Web service applications simple. With just a basic foundation of Java programming, you can use WebLogic Workshop to develop Web services. BEA WebLogic Workshop Kick Start provides everything you need to get started with WebLogic Workshop, including a quick Java primer and appendixes covering the essentials of XML, SOAP and WSDL. Learn the features of WebLogic Workshop and review hundreds of code examples, and explore the inner workings of this new tool.

The book's CD-ROM contains all the source code and examples from the book, plus a 90-day trial version of BEA WebLogic Platform, which includes WebLogic Workshop.


Web services have attracted much attention recently as the next "big thing" in computing technology. Vendors of all shapes and sizes have announced their support for Web services technologies, and every month a new Web services conference is popping up somewhere on the globe. With all this hype and attention, sometimes it¿s difficult to really discover what Web services are, where they fit in your company, what the business case is, and how you can actually get started taking advantage of this technology.

BEA has been working with customers to answer many of these questions, and provide solutions that enable companies to easily construct Web services that meet their needs today. Contrary to the common conception of Web services as a consumer-focused technology, Web services may have the greatest potential as a technology inside enterprises as a new way of tying disparate applications together using standards-based technologies. To make Web services really work in the enterprise, however, it¿s essential that they meet core enterprise requirements: Web services applications have to exist in a constantly changing IT environment where different applications are built and modified by different people on different schedules. They must accommodate everything from modern J2EE-based applications, to legacy systems, to applications at business partners. They must be able to handle rich and complex information and transmit it between internal and external applications. They must easily interact with other applications to leverage existing investments. They must be robust, reliable, and they must perform. Perhaps most important of all, they have to be easy to build. For Web services to flourish within an organization, all developers will need to be able to build Web services that meet these requirements.

BEA WebLogic Workshop Kick Start introduces you to BEA¿s new WebLogic Workshop product, a development tool and runtime framework that makes it easy to build powerful Web services that take advantage of the robust, enterprise features of the WebLogic J2EE application server. WebLogic Workshop provides a graphical tool that makes it easy to visualize, develop, and test Web service applications and visual controls that dramatically simplify access to existing resources like databases, packaged applications, Enterprise Java Beans, and other Web services. The Workshop framework provides out-of-the-box support for building Web services that are loosely coupled so that the internal implementation details of an application can be cleanly separated from the "public contract" that a Web service offers to other applications. This makes Workshop Web services flexible in the face of a constantly changing IT environment. Workshop also provides built-in support for asynchronous messaging so that Web service applications can carry on rich, two-way conversations with their clients and accommodate interaction with legacy systems and human users. Finally, Workshop supports easy manipulation of coarse-grained messages so that rich documents can be handled without resorting to tedious XML DOM programming. All of these capabilities can be accessed in a simple, declarative fashion that enables all developers not just J2EE experts to get started building Web services today.

Even if you are new to the Java programming language, or have never built a J2EE application before, I think you¿ll be surprised how easy it is to get started with Workshop. Working inside the WebLogic Workshop environment, you can focus on the procedural business code that is important to getting your applications built and leave all of the details of Web service and J2EE plumbing to the application framework. BEA WebLogic Workshop Kick Start will give you an introduction to Web services in general, and teach you the few Java and J2EE concepts you¿ll need to know along the way. Rich with examples, this book illustrates the power of Web services, and will help you realize the value they can bring to your company.

--Carl Sjogreen, Product Manager, WebLogic Workshop, BEA Systems, Inc


Joseph Weber has been working with Java full-time since its early alpha stages and has helped advise a number of Fortune 500 companies on the goals of Java. Joe has served on advisory committees for and taught classes at universities in the Midwest, and continues to be a strong advocate for Java in the educational environment. Most recently, Joe contributed to Sams Java Web Services Unleashed (067232363X), due in April 2002.

Mark Wutka is a consultant who specializes in helping companies get the most out of Java. He has built numerous Java, JSP and servlet applications for clients including Delta Airlines, and has taught classes, written articles and books, and given lectures. Recently he has written or contributed to Special Edition Using J2EE (0789725037) and Java Web Services Unleashed (067232363X).