uCosminexus Application Server, Web Service Development Guide
The SOAP application development support function, SOAP Communication Infrastructure, JAX-WS functionality, and JAX-RS functionality are installed when installing Cosminexus.
This subsection describes the procedure and precautions for installing an upgraded version on a machine that has an earlier version installed.
You install an upgraded version of Cosminexus in accordance with the migration procedure described in 10.3 Migration procedure of Application Server in the uCosminexus Application Server Maintenance and Migration Guide (in the case of update installation) or 3.9.2 Migration procedure of Application Server in the uCosminexus Application Server Maintenance and Migration Guide.
If you install an upgraded version, the settings are such that SOAP application development support function and the SOAP Communication Infrastructure are used.
When you migrate a Web Service (or a SOAP application), first un-deploy the Web Service (or the SOAP application) deployed on the J2EE server.
The switching of the SOAP application development support function, SOAP Communication Infrastructure, JAX-WS engine, and the JAX-RS engine is defined in the option definition file for J2EE servers. This subsection describes the specified contents and the specification method of the option definition file for J2EE servers.
For details on the option definition file for J2EE servers, see 2.3 usrconf.cfg (Option definition file for J2EE servers) in the manual uCosminexus Application Server Definition Reference Guide.
... #add.class.path=<cosminexus.home>\c4web\lib\hitsaaj.jar add.class.path=<cosminexus.home>\jaxws\lib\cjjaxws.jar add.class.path=<cosminexus.home>\jaxrs\lib\cjjaxrs.jar ... |
... add.class.path=<cosminexus.home>\c4web\lib\hitsaaj.jar #add.class.path=<cosminexus.home>\jaxws\lib\cjjaxws.jar ... |
The methods of editing the option definition file for J2EE servers are as follows:
In both the described methods, restart the J2EE server after editing (storing) the option definition file for the J2EE server. If the J2EE server is not restarted, the edited contents are not applied.
To directly edit the file, open the option definition file for a J2EE server stored in the following location, in a text editor and change the contents:
Cosminexus-installation-directory/ CC/ server/ usrconf/ ejb/ J2EE-server-name/ usrconf.cfg
When using the management portal of Management Server, you specify the settings using the extension parameters of the J2EE container settings window.
The following figure describes an example for specifying the settings with the JAX-WS and JAX-RS engines.
Figure A-1 Example of settings with the JAX-WS and JAX-RS engines when using the management portal
The following figure shows an example for specifying the settings when using the SOAP application development support function and SOAP Communication Infrastructure.
Figure A-2 Example of settings for the SOAP application development support function and SOAP Communication Infrastructure when using the management portal
For details on setting the J2EE container window of the management portal, see the section 10.9.2 J2EE container settings in the uCosminexus Application Server Management Portal User Guide.
When you use the Smart Composer functionality, the option definition file for J2EE servers is added as an extension parameter of J2EE in the Easy Setup definition file. For details on the Smart Composer functionality, see the uCosminexus Application Server System Setup and Operation Guide. For details on the Easy Setup definition file, see Chapter 4 Files Used in the Smart Composer functionality in the uCosminexus Application Server Definition Reference Guide.
The following example describes the settings when using the JAX-WS and JAX-RS engines:
<param> <param-name>add.class.path</ param-name> <param-value><cosminexus.home>\jaxws\lib\cjjaxws.jar</ param-value> </ param> <param> <param-name>add.class.path</param-name> <param-value><cosminexus.home>\jaxrs\lib\cjjaxrs.jar</param-value> </param> |
The following is an example of setup when the SOAP application development support function and SOAP Communication Infrastructure are used:
<param> <param-name>add.class.path</ param-name> <param-value><cosminexus.home>\c4web\lib\hitsaaj.jar</ param-value> </ param> |
This subsection describes the notes for upgrading from 08-00 through 08-70 and installing Cosminexus 09-00 or later.
Hostname Verification in an SSL connection differs in 08-00 through 08-70 and in 09-00 or later.
When you execute the cjwsimport command, a WSDL fault is mapped to a Java type according to the JAX-WS 2.2 specifications. In such cases, the conditions for creating the wrapper exception class differ in 08-00 through 08-70 and in 09-00 or later.
The operation of the javax.activation.DataHandler object differs in 08-00 to 08-70 and 09-00 or later.
The operation of the javax.xml.transform.Source object differs in 08-00 to 08-70 and 09-00 or later.
When the apt command is used while combining all the following conditions, the operations differ in 08 to 08-70 and 09-00 or later.
The examples of implementation are as follows.
Parent Web Services Implementation Class
@WebService
@SOAPBinding(style=SOAPBinding.Style.DOCUMENT, use=SOAPBinding.Use.LITERAL,
parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
public class AddNumbersParentImpl {
...
@WebMethod
public int addNumbers1(int number1, int number2) {
...
}
public int addNumbers2(int number1, int number2) {
...
}
}
|
Child Web Services Implementation Class
@WebService
@SOAPBinding(style=SOAPBinding.Style.DOCUMENT, use=SOAPBinding.Use.LITERAL,
parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
public class AddNumbersChildImpl extends AddNumbersParentImpl {
...
@WebMethod(exclude=true)
public int addNumbers1(int number1, int number2) {
...
}
}
|
When the addressing functionality is used and when all the following conditions are combined, the run time operations at the service side differ in 08-50 to 08-70 and 09-00 or later.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.