© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, 2006 501 Developing Java Web Services with WTP Arthur Ryman IBM Rational Software.

Презентация:



Advertisements
Похожие презентации
© 2006 IBM Corporation Made available under the EPL v WebSphere Services Technical Conference world class skill building and technical enablement.
Advertisements

Eclipse Web Tools Platform Project © 2005 IBM Corporation Developing Web Services with Eclipse – Programming Examples Arthur Ryman IBM Rational
© 2006 IBM Corporation Made available under the EPL v WebSphere Services Technical Conference world class skill building and technical enablement.
DRAFTING and DIMENSIONING 98. A properly dimensioned drawing of a part is very important to the manufacturing outcome. With CATIA, it can be a very simple.
© 2009 Avaya Inc. All rights reserved.1 Chapter Two, Voic Pro Components Module Two – Actions, Variables & Conditions.
© 2005 Cisco Systems, Inc. All rights reserved.INTRO v Managing Your Network Environment Managing Cisco Devices.
© 2009 Avaya Inc. All rights reserved.1 Chapter Three, Voic Pro Advanced Functions Module Four – Voic Campaigns.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v Route Selection Using Policy Controls Applying Route-Maps as BGP Filters.
© 2002 IBM Corporation Confidential | Date | Other Information, if necessary Developing Web Services with Eclipse Arthur Ryman Web Service.
© 2002 IBM Corporation Confidential | Date | Other Information, if necessary © Wind River Systems, released under EPL 1.0. All logos are TM of their respective.
© 2009 Avaya Inc. All rights reserved.1 Chapter Four, UMS Web Services Module One – UMS.
Using Dreamweaver MX Slide 1 Window menu Manage Sites… Window menu Manage Sites… 2 2 Open Dreamweaver 1 1 Set up a website folder (1). Click New…
© 2006 by IBM; made available under the EPL v1.0 | March 20, 2006 | Jeffrey Liu Release Lead IBM Rational Managing APIs with Eclipse API Scanner.
© 2006 Cisco Systems, Inc. All rights reserved. HIPS v Administering Events and Generating Reports Managing Events.
© 2006 Cisco Systems, Inc. All rights reserved. SND v Configuring a Cisco IOS Firewall Configuring a Cisco IOS Firewall with the Cisco SDM Wizard.
© 2005 by IBM; made available under the EPL v1.0 | March 1, 2005 Tim deBoer Gorkem Ercan Extend WTP Server Tools for your.
© 2002, Cisco Systems, Inc. All rights reserved. AWLF 3.0Module 7-1 © 2002, Cisco Systems, Inc. All rights reserved.
© 2006 by IBM; made available under the EPL v1.0 | October 11, 2006 | Tour of the Web Tools Platform (WTP) Project David Williams Eclipse WST Project Lead.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v Route Selection Using Policy Controls Implementing Changes in BGP Policy.
© 2006 Cisco Systems, Inc. All rights reserved. CIPT1 v Administration of Cisco Unified CallManager Release 5.0 Configuring Cisco Unified CallManager.
Транксрипт:

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Developing Java Web Services with WTP Arthur Ryman IBM Rational Software

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Abstract The Eclipse Web Tools Platform (WTP) project provides a set of tools for developing standards-based multi-tier Java TM Web applications. This session focuses on the tools available for developing Web services in WTP 1.5. These tools will be illustrated through a series of scenarios which include top-down Web service creation from XSD and WSDL, bottom-up Web service creation from Java classes, generating Java client proxies from WSDL, using JAX-RPC in Web applications, testing Web services for WS-I compliance, and publishing Web services using UDDI and WSIL. This is an intermediate level session aimed at developers and managers who are creating and using Java Web services. Some prior experience with WTP is helpful. After this session you will have a good understanding of how WTP can be used to develop Java Web services.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, About this talk You will use WTP to develop Web services in a sequence of iterations The example used is League Planet, a fictitious Web site for amateur sports leagues For more information, see Chapter 10 of the forthcoming book, Java Web Application Development Using Eclipse For the most benefit, you should follow along You are expected to be comfortable using Eclipse and programming in Java Some prior knowledge of Web services would be useful

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Code Examples This tutorial is based on a complete working Web application called League Planet All source code is provided in the examples directory The directory structure is: / / e.g. webservices/iteration1/IceHockeyService/schedule.xmlwebservices/iteration1/IceHockeyService/schedule.xml To make the application work, you must create some projects and generate some code

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Introduction Web services have emerged as the standard technology for integrating heterogeneous systems across the Internet and intranet e.g. services implemented on J2EE TM application servers and clients implemented on.NET desktops or PHP Web servers The key technologies are: Extensible Markup Language: XML – for messages XML Schema Description: XSD – for message description Web Service Description Language: WSDL – for service description Universal Description, Discovery, and Integration: UDDI – for service registries Web Service Interoperability: WS-I – for interoperability

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Overview of Iterations 1. Developing Web Services Top-Down 2. Developing Web Services Bottom-Up 3. Generating Web Service Client Proxies 4. Testing Web Services for Interoperability 5. Using Web Services in Web Applications 6. Discovering and Publishing Web Services

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, 2006 Iteration 1 – Developing Web Services Top-Down

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Iteration 1 - Developing Web Services Top-Down Top-Down development means designing the Web service interface first and then developing the implementation code This approach yields the best interoperability because the underlying implementation details do not bleed through into the interface This approach is required if the messages use existing industry or corporate XML document formats You need to learn XSD and WSDL design skills Luckily, WTP has two great editors that make this task easier

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Iteration 1 Overview 1. Use the XSD editor to describe the League Planet schedule format 2. Use the WSDL editor to describe a Web service for querying schedules 3. Use the Web service wizard to generate a Java skeleton for the service and deploy it to the Axis SOAP engine running on Tomcat 4. Fill in the implementation of the skeleton by accessing the League Planet business tier 5. Use the Web service explorer to test the Web service

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Create a new Dynamic Web Project named IceHockeyService to contain the Web service.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Describing schedule.xml League Planet has an XML format for schedules Import IceHockeyService/schedule.xml for an example instance documentIceHockeyService/schedule.xml Your goal is to describe this format using XSD

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Create a new XML Schema file named schedule.xsd in IceHockeyService.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, schedule.xsd In general, there are many equivalent ways to describe a given format using XSD For Web services, its a good practice to describe formats in a way that works well with XML data binding toolkits such as JAX- RPC Define complexTypes for the content model of each element The XSD editor lets you edit in the source tab, the graphical tab, the outline view, and the property view Try creating schedule.xsd Import IceHockeyService/schedule.xsd before proceedingIceHockeyService/schedule.xsd

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, View schedule.xsd in the Graph tab of the XSD editor.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, View ScheduleContent of schedule.xsd in the Graph tab of the XSD editor.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, View schedule.xsd in the Outline view of XSD editor.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, query.wsdl Now that youve described the message format using XSD, you next goal is to describe a Web service for retrieving it For simplicity, the Web service will have a single operation named getSchedule The operation will take as input, the schedule id, and return as output the corresponding schedule document

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Create a new WSDL file named query.wsdl in IceHockeyService.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Enter the namespace for the WSDL and have the wizard generate a skeleton document for you using the SOAP binding and document/literal style.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, WSDL editor You can edit the document in the graph tab, the source tab, the outline view, and the property view. WSDL describes Web service using a hierarchy of constructs: message, portType, binding, and service The editor has a wizard that generates binding content for you Try creating query.wsdl Import IceHockeyService/query.wsdl before proceedingIceHockeyService/query.wsdl

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, View query.wsdl in the Graph tab of the WSDL editor.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, View query.wsdl in the Outline view of the WSDL editor.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Deploying query.wsdl You have now described the Web service Your next goal is to deploy it This step assumes you have previously installed Tomcat and added it to WTP Select query.wsdl and execute the command Web Services > Generate Java bean skeleton This command launches the Web service wizard

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Check the boxes to Install and Start the Web service and click Next.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, The wizard validates your WSDL. Click Next.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, The wizard selects Axis and Tomcat. Click Next.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, The wizard lets you select a source folder and change the package name for the generated skeleton. Accept the defaults and click Next.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Click Start server, wait, then click Next.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, The wizard lets you publish the WSDL to UDDI. Just click Finish.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, What the wizard did. Installed the Axis SOAP engine in your project Generated the Java bean skeleton for you service and lots of Java XML data binding classes in the src folder Copied query.wsdl to WebContent/wsdl/querySOAP.wsdl and set its endpoint to your Web application (also copied schedule.xsd) Created the Axis deployment descriptor WebContent/WEB- INF/server-config.wsdd Created a couple of handy Axis files to deploy and undeploy your Web service in a subfolder of WebContent/WEB-INF Started Tomcat to make your Web service available

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, The IceHockeyService project after the wizard completed. Select AxisServlet and execute the command Run As > Run on Server.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, View the list of deployed Web services.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, LeaguePlanetModel Business Tier The Web service is running but it just returns null at this point You next need to fill in the implementation of the Java bean skeleton The Web service needs to access the League Planet business tier If you have not previously done so, create a new J2EE Utility Project named LeaguePlanetModel and import the source code from LeaguePlanetModel/src into it

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Select IceHockeyService and open its Properties dialog. Add LeaguePlanetModel as a J2EE Module Dependency.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, View the module structure of the server in the Servers view.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Filling in the Java bean skeleton You now have a Web service skeleton and access to the League Planet business tier. Your next goal is to implement the Web service. The generated skeleton class is com.leagueplanet.ws.query.QuerySOAPImpl Import IceHockeyService/src/com/leagueplanet/ws/query/QuerySOAPImpl.java now IceHockeyService/src/com/leagueplanet/ws/query/QuerySOAPImpl.java This modified skeleton simply delegates to a new class com.leagueplanet.Query to avoid confusion with the generated code Create this new class now and try to implement it Import IceHockeyService/src/com/leagueplanet/Query.java before proceedingIceHockeyService/src/com/leagueplanet/Query.java

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Testing the Web service At this point the Web service is ready to test You will test it using the Web Service Explorer Select IceHockeyService/WebContent/wsdl/querySOAP.wsdl and execute the command Web Services > Test with Web Service Explorer The Web Service Explorer will start and open a new Web browser in the editor area

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, View querySOAP.wsdl in the Web Service Explorer. Click the getSchedule link.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, View the getSchedule operation. Enter 1 in the scheduleId field and click Go. The schedule is returned in the Status pane.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Double-click the Status pane to maximize it. Click the Source link to view the SOAP message.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, View the SOAP message source. Click the Form link to return to the Form display.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, 2006 Iteration 2 – Developing Web Services Bottom-Up

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Iteration 2 – Developing Web Services Bottom-Up Bottom-Up development starts with a Java service class and generates the WSDL from it This approach is more productive for Java developers since XSD and WSDL design skills are not required It is suitable when the Java class uses simple data transfer objects as inputs and outputs of its operations It is dangerous because the resulting XSD may be complex and less interoperable There is risk of implementation bleed through into the service interface and coupling between the client and service

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Iteration 2 Overview 1. Develop a Java service class to get details about a game and to update its score 2. Use the Web service wizard to deploy the service 3. Use the WSDL editor to view the generated WSDL

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Create the Java service implementation The service implementation will be created in the package com.leagueplanet Import the following Java classes into IceHockeyService/src/com/leagueplanet: GameDetail.java – the data transfer class GameDetail.java GameException.java ScoreException.java Update.java – the service class Update.java The service has two operations: getGame updateScore The service accesses the League Planet business tier

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Deploy the service Select Update.java and execute the command Web Services > Create Web service

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Check the Install and Start Web service boxes. You could click Finish at this point since the wizard picks sensible defaults. Click Next to step this the pages.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, The wizard lets you select a different class. Click Next.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, The wizard lets you select a different project. Click Next.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, The wizard lets you select the methods to include as operations and the style to use. Click Next.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Confirm that Update was deployed using the AxisServlet.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, View the generated Update.wsdl in the WSDL editor.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, 2006 Iteration 3 – Generating Web Service Client Proxies

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Iteration 3 – Generating Web Service Client Proxies Web services can be invoked from programs written in many programming languages, e.g. Java, C#, PHP, JavaScript TM etc. Most languages support dynamic invocation and do not require any code generation A client proxy simplifies Web service invocation by producing a class that resembles the service interface In J2EE, client proxies are specified by JAX-RPC and its follow- on JAX-WS

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Iteration 3 Overview 1. Use the Web service wizard to generate a Java client proxy and a JSP test client 2. Test the service using the JSP test client

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Select Update.wsdl and execute the command Web Services > Generate Client. The wizard opens. Check the Install, Test, and Monitor boxes and click Next.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, The wizard validates the WSDL. Click Next.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, The wizard lets you select a different client project. Click Next.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, The wizard lets you change the package for the generated client proxy code. Click Next.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, The wizard lets you select the operations to include in the generated JSP test client. It also lets you select a different output folder for the JSPs. Click Finish.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, What the wizard did Created a new Dynamic Web project named IceHockeyServiceClient Installed Axis in IceHockeyServiceClient Generated Java proxy code including XML data binding classes and exceptions in IceHockeyServiceClient/src/com/leagueplanet Generated JSP test client code in IceHockeyWebContent/sampleUpdateProxy Started an instance of the TCP/IP Monitor and configured the JSP client to use it Opened the JSP test client in a Web browser You are now ready to test the Web service

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Click the getGameDetail method. Enter gameId = 1 and click Invoke. View the game details in the Result pane.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Click the updateScore method. Enter input parameters and click Invoke. The operation returns an empty result.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Click the getGameDetails method. Enter gameId =1 and click Invoke. View the updated score in the Result pane to confirm that the updateScore operation works correctly.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, 2006 Iteration 4 – Testing Web Services for Interoperability

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Iteration 4 – Testing Web Services for Interoperability The main value proposition of Web services is interoperability between heterogeneous systems, e.g..NET, PHP, JavaScript WS-I.org was established to define interoperability profiles WTP lets you validate both your WSDL and your Web service implementations for interoperability

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Click the getEndpoint method. Click Invoke. View the endpoint address in the Result pane. Note the port number.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Open the Preferences dialog and select the TCP/IP Monitor page. Note the port number of the monitor matches the endpoint.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, View the recorded messages in the TCP/IP Monitor view. Click the Validate icon (document with checkmark).

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, The wizard lets you select a folder to store the message log file. Select IceHockeyServiceClient and click Next.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, The wizard lets you validate the message against a WSDL file. Select Update.wsdl and click Next.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, The wizard lets you select the WSDL element to use. Select the Update port and click Finish.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, The messages are valid. In the event of errors, markers are placed in the generated log file.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Use the Profile Compliance and Validation Preference page to control the level of validation.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, 2006 Iteration 5 – Using Web Services in Applications

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Iteration 5 – Using Web Services in Applications Web services can be used in applications developed with many programming languages and technologies Web services allow alternate user interfaces to be developed Web services allow decoupling of the presentation and business tiers within an enterprise Java applications can use JAX-RPC or JAX-WS to access both Java and non-Java Web services

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Iteration 5 Overview 1. Develop a user interface in IceHockeyServiceClient based on JSPs and servlets 2. Access the Update Web service from the servlet using the Java client proxy

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Create a new servlet in IceHockeyServiceWeb. Enter package and class names. Click Next.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Enter a description and URL mapping. Click Next.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Check the doGet and doPost boxes. Click Finish.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Develop the user interface The wizard created and configured the UpdateScoreServlet Create two new JSPs: score-form.jsp – to input score, has Submit button score-confirmation.jsp – to confirm score update, has Edit button Code the servlet as follows: doGet takes a gameId query parameter, calls the service to get the game detail, puts the game detail in the session, and forwards to score-form.jsp doPost takes gameId, visitorScore, and homeScore query parameters, calls the service to update the score, gets the new game detail, and forwards to score-confirmation.jsp

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Import the UI code Just kidding! That was way too much code to write. Import the following code into IceHockeyService: /src/com/leagueplanet/ui/UpdateScoreServlet.java /WebContent/score-form.js /WebContent/score-confirmation.js /WebContent/schedule.css /WebContent/validator.css /WebContent/score-validator.js Note the JAX-RPC usage pattern in the servlet

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Select the updateScore servlet and execute the command Run As > Run on Server. A GameException is thrown because you didnt provide a gameId query parameter.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Append ?gameId=1 to the URL and try again. Now the score form is displayed. Enter a new score and click Submit.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, The score confirmation page is displayed. Click Edit to update the score again.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, 2006 Iteration 6 – Discovering and Publishing Web Services

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Iteration 6 – Discovering and Publishing Web Services You can look for available Web services in UDDI registries You can also publish Web services in UDDI registries UDDI provides a SOAP Web service for dynamic discovery You can also look for and publish Web services using the simpler WSIL document format In the future, Web crawlers might harvest WSIL documents and automatically populate UDDI registries so you can take advantage of the powerful UDDI inquiry support

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Iteration 6 Overview 1. Explore a UDDI registry 2. Explore a WSIL document 3. Create a WSIL document

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Launch the Web Service Explorer. Select the XMethods UDDI Registry and click Go.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, View the registry details. Click the Find link.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Enter a name for the query. Search for Services. Enter a partial service name to search for and click Go.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, View the query results. Click the service links to explore the services.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, View the webservicex.com service. Click the Add to WSDL Page icon (with plus sign).

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, View the WSDL details. Click the StockQuoteSOAP link.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, View the WSDL binding details. Click the GetQuote link.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, View the operation details. Click the Add link and enter a stock symbol. Click Go.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, View the result of the operation in the Status pane.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, WSIL As you can see from this exercise, UDDI is very complex WSIL is a simpler way to publish information about Web services WSIL can refer to WSDL, UDDI, and other WSIL documents WSIL was jointly developed by IBM and Microsoft Microsoft still uses the precursor, DISCO There is not a lot of WSIL deployed XMethods support it and several other technologies

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Surf to Click the Access link.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, View the many access methods supported by XMethods. Copy the WS-Inspection link.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Open the WSIL page of the Web Service Explorer (page with globe icon). Paste in the XMethods WSIL URL, select WSDL Services, and click Go.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, View the list of WSDL services registered at XMethods.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Create an new inspection.wsil file in IceHockeyService/WebContent

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Edit inspection.wsil Select IceHockeyService/WebContent/wsdl/querySOAP.wsdl and execute the command Web Services > Generate WSIL to create querySOAP.wsil Repeat for Update.wsdl Merge the contents of these into inspection.wsil and add abstracts Import IceHockeyService/WebContent/inspection.wsil before proceedingIceHockeyService/WebContent/inspection.wsil

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Enter in WSIL page, select WSDL Services and click Go.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, View the available WSDL services. Click the QuerySOAP.wsdl link.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, View the QuerySOAP.wsdl details.

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Web Services Summary In this tutorial you have covered all the major functional areas of Web service development that are available in WTP Tools covered included the Web Service Wizard, Web Service Explorer, XSD Editor, WSDL Editor, TCP/IP Monitor, and WS-I Test Tools Technologies covered include XSD, WSDL, SOAP, UDDI, WSIL, JAX-RPC, and Axis For further details consult the WTP Help and Web site

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, 2006 EclipseWorld 2006 WTP Track and Subprojects

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, The JSF Tools Project Technology Preview release with WTP 1.5 Features Full-fledged Faces Config Editor Enhanced JSF-JSP Source Editor JSF Library Registry Extensible framework Download / / Release 1.0-WTP2.0 Features Visual JSF Page Designer JSF 1.2 support First release of APIs Requirements

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, AJAX Toolkit Framework Provides tools for developing AJAX/DHTML applications JavaScript Debugger Embedded Mozilla Browser DOM Inspector / JavaScript Console JavaScript Validation Extensible framework for adding AJAX runtimes to eclipse AJAX Personality Builder New Enhancements New CSS Tools and Improved DOM Inspector Configuring and Deploying to a HTTP Server JavaScript Debugging Enhancements Debugging using a HTTP/File URL. Expression Support Project in Incubation Phase (

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Dali JPA Tools Project Tools and frameworks for building applications with the Java Persistence API (JPA) part of Java EE 5. Support for both EE and SE development O-R Mapping validation with intelligent code assist for both Java and Database values. Quick start generation wizards Entities from Tables Tables from Entities Salvador Dalí. The Persistence of Memory © 2005 Salvador Dalí, Gala-Salvador Dalí Foundation/Artists Rights Society (ARS), New YorkThe Persistence of Memory

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, WTP Track Wednesday, September 6 All Day T-4 Develop Better J2EE Applications With the Web Tools Platform – JuddT-4 Thursday, September 7 8:30 AM 101 Quick Tour of the Eclipse Web Tools Platform – Ryman101 8:30 AM 107 Leveraging JSF Components – Katz107 10:30 AM 201 How to Build Java Web Applications With the Web Tools Platform – Ryman201 1:15 PM 301 Facing JavaServer Faces Development With JSF Tools – Jacobi301 3:15 PM 401 Consuming and Producing Web Services With Web Tools – Judd401 Friday, September 8 8:45 AM 501 Developing Java Web Services With the Web Tools Platform – Ryman501 10:45 AM 601 Extending the Web Tools Platform With Ant and PDE – Shittu601 1:45 PM701 Building Applications With the Java Persistence API and Dali – S. Smith701 3:45 PM 801 How to Use and Extend Eclipses XML and Schema Tools – Williams, Salter, Dahyabhai801

© 2006 by IBM; made available under the EPL v1.0 | Cambridge | September 8, Attributions Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both. Other company, product, or service names may be trademarks or service marks of others.