WAS v8.5 > Reference > Developer best practices

Web services migration best practices

Use these web services migration best practices when migrating web services applications.

If we have used the Apache SOAP support to develop web services client applications in WebSphere Application Server Versions 4, 5, or 5.1, we might need to migrate the applications or the security files for the applications. The following table summarizes the web services specifications supported by the WebSphere products.

Summary of web services specifications supported by WAS . WAS v8.5 supports the web services specifications in this table.

WAS Version Web services specifications supported
4.0 Apache SOAP 2.2
5.0 and 5.0.1 Apache SOAP 2.3
5.0.2 or later Java 2 Platform, Enterprise Edition (J2EE), also known as (JSR 109)
6.0.x and 6.1 J2EE (JSR 109)
7.0 or later Web Services for Java EE 5 also known as JSR 109

The Apache SOAP 2.2 and Apache SOAP 2.3-based implementations that were available in WAS Version 4.0.x, 5.0 and 5.0.1 are no longer supported. It is recommended that applications that are using these SOAP implementations migrate to Web Services for Java EE (JSR 109) support provided in current WAS versions.

For more information on migrating the web services, read about migrating Apache SOAP web services to web services to J2EE standards.

It is recommended that new web services be developed using the web services for Java EE specification. To learn more, read about implementing web services applications.

Security cannot be directly migrated from SOAP 2.3 to the Java EE standards. After we have migrated the web services to the Java EE standards, consider securing the web services applications. To learn more, read about securing web services applications using message level security.

Follow these best practices for the most optimal migration experience:

The application server supports the JAX-WS programming model and the JAX-RPC programming model. JAX-WS is the next generation web services programming model extending the foundation provided by JAX-RPC.

Existing JAX-RPC applications wanting to use JAX-WS features must be rewritten using JAX-WS.


Redeploy existing JAX-RPC web services after migrating to a new release of the application server

When migrating to a new release of the application server, IBM recommends that you redeploy the web services applications. You should redeploy the web services application in the new application server environment because of possible changes to the supported levels of web services specifications and web services deployment descriptors in each release. To redeploy the web service, select Deploy Web Services in the Install New Application wizard or use the wsdeploy command. To learn more about this process, see the deploying web services applications onto application servers documentation.


Migrating a 32-bit WAS environment to be compatible with 64-bit

If we are using web services implemented on a WAS 32-bit environment, you need to make sure the web services are compatible with a 64-bit environment. For a pure Java application this is not an issue. However, if the application code utilizes the Java Native Interface (JNI) code, you should be aware of the following: the JNI enables the Java code running in a virtual machine to operate with applications and libraries written in other languages, such as C, C++, and assembly. If your Java EE application uses JNI in a 32-bit environment, your code must be re-compiled in the 64-bit environment. It is possible the JNI calls can be different after the compilation, as the JNI specifications can change from version to version.


Migrating a v5 Java API for XML-based remote procedure call (JAX-RPC) client that uses SOAP over JMS to invoke a web service

A JAX-RPC client that is run on WAS v5, can use SOAP over JMS to invoke a web service that is run on a v5 Application Server.

A user ID and password are not required on the target WebSphere MQ queue. After the application server is migrated to v6.x, and uses the v6.x default messaging feature, client requests can fail because basic authentication is enabled. The following error message displays when this migration problem occurs:

SibMessage W [:] CWSIT0009W: A client request failed in the application server with 
endpoint <endpoint name> in bus <bus_name> with reason: CWSIT0016E: The user 
ID null failed authentication in bus <bus_name>.

When the application server is migrated to v6.x, and the default messaging provider (service integration technologies) is used, and administrative and application security is enabled for the server or the cell, the service integration bus queue destination inherits the security characteristics of the server or the cell by default. If the server or the cell has basic authentication enabled, the client request fails.

The following options are available to solve this problem. The solutions are listed by the level of security they impose:


Migrating Apache SOAP web services

We can migrate web services that were developed using Apache SOAP to web services developed based on the Web Services for J2EE specification. See the information on migrating Apache SOAP web services to JAX-RPC web services based on Java EE standards.


Migrating web services assembled with early versions of the Application Server Toolkit or Assembly Toolkit

If you are migrating the web service or web service components from earlier versions of the Application Server Toolkit or Assembly Toolkit, refer to the following hints and tips to improve your success:

.


Related concepts:

Programming models for web services message-level security


Related


Tasks: Implementing web services applications
Migrating Apache SOAP web services to JAX-RPC web services based on Java EE standards
Configure HTTP basic authentication for JAX-RPC web services with the dmgr console
Deploy web services applications onto application servers


Reference:

Web services specifications and APIs


+

Search Tips   |   Advanced Search