WebSphere JAX-RPC Web service temperature conversion setup instructions

After you import the sample, if you want to run the sample code you need to create and configure a WebSphere v6.1 server 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.1 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. To run the service, in the Project Explorer right-click the TemperatureClient/WebContent/sampleConvertTemperatureProxy/TestClient.jsp and select Run As > Run on server.
Note: By default the SOAP address in the WSDL file is set to use port 9080. If the port that WebSphere Application Server is using for your service is different, you will need to update the WSDL file to match your port number.
  1. You can determine which port WebSphere Application Server is using in the WebSphere administrative console.
    1. Expand Servers in the left pane, and select Application servers.
    2. Select your server name from the list. By default this is server1.
    3. On the Configuration tab, search for the Communications heading and expand Ports.
    4. The port used is WC_defaulthost.
  2. If the port is anything other than 9080, run the TestClient.jsp as described earlier.
  3. Invoke the getEndpoint method of the client. Copy the result.
  4. Click setEndpoint and paste the current endpoint for the service. Replace the port number with the port your server is using and invoke the method.
Parent topic: WebSphere JAX-RPC Web service temperature conversion sample

Feedback