Skip to main content


developerWorks  >  Sample IT projects  >

Extending MetroSphere, Part 11: Create Web services with portlets

developerWorks

Level: Intermediate

Mr. Nicholas Chase , IT Consulltant, Backstop Media

24 May 2005

Register now or sign in using your IBM ID and password.

The MetroSphere project is designed to provide technical professionals with the ability to gather all their information in one place, both through collaboration with other professionals and through the creation of personal pages. In this tutorial, you create a clipping service for an online community site that searches and retrieves information about a particular topic using Web services. Discover how to create and integrate clients for Amazon and Google Web services, enabling users to search for books and Web sites on a particular topic.

In this tutorial

After completing this tutorial, you'll know how to:

  • Create a Web Services client portal project using IBM WebSphere Application Developer to generate a client within a portlet

  • Work with the classes generated from a Web Services Description Language (WSDL) file

  • Integrate a Web services client with an existing portal application

  • Create a Web services client from within an existing project

  • Integrate multiple Web services into a single portlet request

  • Use the basic objects of Amazon and Google Web services

Prerequisites

This tutorial assumes that you have a basic knowledge of how to create and use portlets and forms, as well as programming in Java, although the actual programming is not complex. It also assumes you are familiar with Web services themselves, as well as IBM WebSphere Application Developer, but this is not a strict requirement.


System requirements

To follow along with the tutorial, you'll need to have the following tools installed and working.

  • WebSphere Studio Application Developer: This tutorial assumes that you are using WebSphere Application Developer (Application Developer) with the Portal Toolkit. (This means you will need Version 5.0, not 5.1.) WebSphere Studio Application Developer comes with WebSphere Portal or you can download a trial version at www.ibm.com/developerworks/websphere/downloads/WSADsupport.html.
    You can download WebSphere Portal Toolkit from www-306.ibm.com/software/info1/websphere/index.jsp?tab=products/portaltoolkit.
  • The Amazon Web Services 3.1 Developers Kit: Strictly speaking, you don't actually need the kit, just the URL for the WSDL file, but the kit includes documentation and the locations of WSDL files for multiple locales. You can download the kit at www.amazon.com/gp/browse.html/103-5421439-9396663?node=3435361. You'll also need to request a free developer's token.
  • The Google Web services developer's kit: This kit includes the WSDL file for the Google Web service, as well as a sample Java implementation and other sample implementations. You can download it at www.google.com/apis/. You will also need to request a free developer's key.
  • WebSphere Portal: This tutorial is built on WebSphere Portal 4.2.2, but the concepts apply to any 4.x or 5.x installation. You can get more information on WebSphere Portal at www-306.ibm.com/software/info1/websphere/index.jsp?tab=products/portal.


Duration

Under two hours


Formats

html, pdf


Share this....

digg Digg this story del.icio.us del.icio.us Slashdot Slashdot it!


Back to top


Document options

Document options requiring JavaScript are not displayed


My developerWorks needs you!

Connect to your technical community