Web service Address Book setup instructions

After you import the sample, if you want to run the sample code you need to create and configure a WebSphere v6.0 server if you have not done so already, and associate the sample with it using the following steps:

  1. From the File menu, select New > Other > Server > Server > Next.
  2. Select WebSphere v6.0 Server as the server type, and click Next.
  3. Enter server1 as the server name, and click Finish.
  4. To see the server you have created in the workspace, from the Window menu select Show view > Other > Server > Servers > Ok
  5. To associate the sample with the server, right-click the server you created and select Add and remove projects. Select the service and client EARs from the Available projects list and click Add.
  6. You should be prompted to restart the server. If not, restart it manually by right-clicking it and clicking Start
  7. .

Once the sample has been imported and is associated with a server, you can run the service by doing the following:

  1. In the Project Explorer expand Dynamic Web projects > AddressBookClient > WebContent > sampleAddressBookProxy.
  2. Select TestClient.jsp, right-click and click Run > Run on server.
  3. Slect the server that you created in the previous steps, or the default server created with your workspace, and click Finish.
  4. A Web browser opens with the sample client displayed. Select a method from the Methods pane, enter any required information in the Inputs pane, and the result will display in the Result pane.
Additionally, you can explore the Java code used by this sample by expanding Dynamic Web projects > AddressBook > JavaResources. Double-clicking the WSDL and Web service deployment descriptors located in the WebContent folder will allow you to explore them in their respective editors.