Changing the JAX-RPC Web Service Client Type

See Also 

For JAX-RPC web services (J2EE 1.4 specification), two types of web service client can be created in the Web Service Client wizard:

After you create a web service client, you may need to change the type. For example, maybe you created the client to deploy it to the Sun Java System Application Server and now you want to deploy it to the Tomcat Web Server. Since the Tomcat Web Server is not a J2EE container, you may need to change the client type from J2EE Container-generated static stub to IDE-generated static stub.

To change the web service client type:

  1. In project.xml, change jsr-109_client to jaxrpc_static_client.
  2. Close and reopen the project. This regenerates build-impl.xml, using the changed project.xml.
  3. Clean and build the project. During the build, the changed build-impl.xml causes the build to create stubs.
  4. Delete the operation(s) that the IDE created for you and recreate it/them (Web Service Client Resources > Call Web Service Operation).

In the Files window, look in the build folder and then find the client's package. The client's package should now contain more files than before. The additional files are the client stubs that the IDE generated in the steps above.

See Also
About Web Services

Legal Notices