WebSphere JAX-WS Web service temperature conversion setup instructions

About this task

To run the sample code, you must create and configure a WebSphere® Application Server V8.5 server and associate the sample with it using the following steps:

Procedure

  1. From the File menu, select New > Other > Server > Server > Next.
  2. Select WebSphere Application Server V8.5 as the server type, and click Next.
  3. Select a server profile. If no server profile is available, create a profile by clicking Configure profiles and running the profile management tool. For more information, see Creating, editing, and deleting servers.
  4. Enter server1 as the server name, and click Finish.
  5. To see the server you created in the workspace, from the Window menu select Show view > Other > Server > Servers > OK.
  6. To associate the sample with the server, right-click the server that you created and select Add and Remove. Select the service and client EARs from the Available projects list and click Add.
  7. You should be prompted to restart the server. If not, restart it manually by right-clicking it and clicking Start.
  8. To run the service, in the Enterprise Explorer right-click the TemperatureClient/WebContent/sampleConvertTemperatureProxy/TestClient.jsp and select Run As > Run on server.

What to do next

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 and select Application servers.
    2. Select your server name from the list. By default this is server1.
    3. On the Configuration tab under the Communications heading, expand Ports. The port that the service uses is WC_defaulthost.
  2. If the port is anything other than 9080, run the TestClient.jsp as described earlier.
  3. Run the getDescriptor method of the client. Copy the endpoint value.
  4. Under Quality of Service, paste the current endpoint value for the service. Replace the port number with the port that your server uses, and click Update.
Icon that indicates the type of topic Sample setup topic
Timestamp icon Last updated: July 17, 2017 21:58

File name: wsejb_setup.html