WebSphere Application Server Version 6.1 Feature Pack for Web Services
             Operating Systems: AIX, HP-UX, i5/OS, Linux, Solaris, Windows, z/OS

             Personalize the table of contents and search results
             New or updated topic for this feature pack

Deploying Web services applications onto application servers

After assembling the artifacts required to enable the Web module for Web services into an enterprise archive (EAR) file, you can deploy the EAR file into the application server.

Before you begin

To deploy Java-based Web services, you need an enterprise application, also known as an EAR file that is configured and enabled for Web services.

New or updated for this feature pack A Java API for XML-Based Web Services (JAX-WS) application is packaged as a Web archive (WAR) file or a WAR module within an Enterprise Archive (EAR) file. A JAX-WS application does not require additional bindings and deployment descriptors for deployment whereas a JAX-RPC Web services application requires you to add additional bindings and deployment descriptors for application deployment. JAX-WS is much more dynamic, and does not require any of the static data generated by the deployment step required for deploying JAX-RPC applications.

New or updated for this feature pack To install a JAX-WS application, you only need to install the JAX-WS enabled EAR file. You do not need to use the wsdeploy command.

New or updated for this feature pack Use the wsdeploy command only with JAX-RPC applications that are used with the Feature Pack for Web Services product. The wsdeploy command is not applicable for JAX-WS applications.

About this task

This task is one of the steps in developing and implementing Web services.

You can use either the administrative console or the wsadmin scripting tool to deploy an EAR file. If you are installing an containing Web services by using the wsadmin command, specify the -deployws option for JAX-RPC applications. If you are installing an application containing Web services by using the administrative console, select Deploy WebServices in the Install New Application wizard. For more information about installing applications using the administrative console see Installing a new application.

If your JAX-RPC Web services application was previously deployed with the wsdeploy command, it is not necessary to specify Web services deployment during installation.

The following actions deploy the EAR file with the wsadmin command:

Procedure

  1. Start install_root/bin/wsadmin from a command prompt. If you are using Linux or Unix platforms, start install_root/bin/wsadmin.sh.
  2. Deploy the EAR file.
    • New or updated for this feature pack For JAX-WS Web service applications, enter the $AdminApp install EARfile "-usedefaultbindings" command at the wsadmin prompt.
    • For JAX-RPC Web service applications, enter the $AdminApp install EARfile "-usedefaultbindings -deployws" command at the wsadmin prompt.

Results

You have a Web service installed into the WebSphere Application Server product.

What to do next

You can confirm that the Web services application was deployed by entering the Web service endpoint URL in a browser, then viewing an informative page. The information page contains the following information:
{http://webservice.pli.tc.wssvt.ibm.com}RetireWebServices 
Hello! This is an Axis2 Web service!
The first line of this information is variable, depending on your Web service. The URI in the brackets is the namespace and the string following that (in this example, RetireWebServices), is the name of the port used to access the Web service.

The next step you might want to consider is to apply or security for 6.x applications to the applications.




In this information ...


IBM Redbooks, demos, education, and more


Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

IBM Suggests
Task topic    

Terms of Use | Feedback

Last updated: Nov 25, 2008 2:35:59 AM CST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.wsfep.multiplatform.doc/info/ae/ae/twbs_deployapp2.html