uCosminexus Application Server, Web Service Development Guide
From the Web Service client, you can connect with a Web Service that supports the SSL protocol.
This section describes the property settings required for connection by the SSL protocol.
To access the Web Service with SSL protocol, specify the values for the properties supported in JDK and set up the information about the SSL protocol. The following table describes the properties for connection by SSL protocol and the specified contents.
Table 10-15 Properties for connection by SSL protocol
| No. | Properties | Specified contents |
|---|---|---|
| 1 | javax.net.ssl.trustStore | Specify trust store. |
| 2 | javax.net.ssl.trustStorePassword | Specify the password for trust store. |
Specify these properties as and when required. If trust store is not specified, the default value such as JDK-installation-directory/lib/security/jssecacerts is used.
For the JDK properties, see the JDK documentation.
To enable the value specified for a property, specify the properties in the system property. How to set up a property differs depending on the execution of the Web Service client.
The following is an example of setting the properties:
javax.net.ssl.trustStore=trust-store javax.net.ssl.trustStorePassword=trust-store-password |
There is no fixed location for adding the settings of the properties.
When connecting from a Web Service client to a Web Service supporting the SSL protocol, validate whether the host name to be included in the end point address matches with the host name in the certificate. The HostnameVerifier to be used is the default implementation of JDK. For the operation of the default HostnameVerifier of JDK, see the JDK documentation.
You can skip the host name validation by configuring the settings in the action definition file or message context. The following table describes the properties and the specified content for skipping the host name validation.
Table 10-16 Properties for skipping host name validation
| No. | Property | Specified contents | Mandatory |
|---|---|---|---|
| 1 | com.cosminexus.xml.ws.client.http.HostnameVerificationProperty | For skipping the host name validation, specify true. When the validation is not to be skipped, specify false. | O |
For details on how to set up the properties in an action definition file, see 10.1.2 Settings for a common definition file. For details on how to set up the properties in the message context, see 19.2.5 Using the message context.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.