After you import the sample, if you want to run the sample code you need to create and configure a WebSphere v6.0 server and associate the sample with it using the following steps:
- From the File menu, select New > Other >
Server > Server > Next.
- Select WebSphere v6.0 Server as the server type, and click Next.
- Enter server1 as the server name, and click Finish.
- To see the server you have created in the workspace, from the Window menu select Show view > Other >
Server > Servers > Ok
- 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.
- You should be prompted to restart the server. If not, restart it manually by right-clicking it and clicking Start
.
- To run the service, in the Dynamic Web Projects folder, right-click the
StockQuoteClient/WebContent/sampleStockQuoteServiceProxy/TestClient.jsp and select Run on server.
|