Deploying a web service to a server using the command line tools
After you create an EAR file by using a web services command-line tool, you can deploy the EAR file to a server to create the code that makes your service available to others.
About this task
You can deploy the EAR file to WebSphere® Application Server by using either the development environment or the administrative console. To deploy the EAR file and test the web service in the development environment, you must import the EAR file then create, configure, and start the web server.
Importing an EAR file
Procedure
Results
You imported an EAR file and its corresponding project.
You can now create and configure the server to deploy the web service.
Creating and configuring the web server
About this task
If you already created a server, go to step 4. Alternately you can create a server manually.
Procedure
- Select Server and Server from the lists. Click Next. . Select
- Specify the host name of the server you want to publish on, or accept the default localhost setting. Select the type of server you want to create and click Next.
- Select the port that you want to use, and accept the other default settings. Click Finish.
- Switch to the Servers view by going to .
- In the Server Configuration pane, right-click your server. Select Add and Remove projects. Select your web service EAR and add it to the server. Click Finish.
Results
After you deploy your web service to the server, you can test it.