WebSphere JAX-WS Web service temperature conversion setup instructions
About this task
Procedure
- From the File menu, select .
- Select WebSphere Application Server V8.5 as the server type, and click Next.
- 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.
- Enter server1 as the server name, and click Finish.
- To see the server you created in the workspace, from the Window menu select .
- 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.
- 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 Enterprise Explorer right-click the TemperatureClient/WebContent/sampleConvertTemperatureProxy/TestClient.jsp and select .
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.
- You can determine which port WebSphere Application
Server is using in the WebSphere administrative
console.
- Expand Servers and select Application servers.
- Select your server name from the list. By default this is server1.
- On the Configuration tab under the Communications heading, expand Ports. The port that the service uses is WC_defaulthost.
- If the port is anything other than 9080, run the TestClient.jsp as described earlier.
- Run the getDescriptor method of the client. Copy the endpoint value.
- 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.