Set additional HTTP transport properties using the JVM custom property panel in the admin console
Configure additional HTTP transport properties for JAX-WS and JAX-RPC Web services with the JVM custom properties panel in the admin console.
HTTP custom properties for Web services applications include...
- com.ibm.websphere.webservices.http.requestContentEncoding
- com.ibm.websphere.webservices.http.responseContentEncoding
- com.ibm.websphere.webservices.http.connectionKeepAlive
- com.ibm.websphere.webservices.http.requestResendEnabled
- com.ibm.websphere.webservices.http.SocketTimeout
- com.ibm.ws.webservices.enableHTTPPrefix
- http.proxyHost
- http.proxyPort
- https.proxyHost
- https.proxyPort
- http.nonProxyHosts - We can only configure this property as a JVM custom property. This property applies for both HTTP and HTTPS connections.
These additional properties are configured for Web services applications that use the HTTP protocol. The properties affect...
- the content encoding of the message in the HTTP request
- the HTTP response
- the HTTP connection persistence
- behavior of an HTTP request that is resent after a java.net.ConnectException error occurs when there is a read time-out
Procedure
- Open the admin console and go to...
- Servers | Application Servers | server | Java and Process Management | Process Definition | Java Virtual Machine | Custom Properties
- (Optional) If the property is not listed, create a new property name.
- Enter the name and value.
- (Optional) Accept the redirection of the HTTP request to a different URI in HTTPS.
A redirection of the HTTP request to a different URI in HTTPS can occur if the transport guarantee of CONFIDENTIAL or INTEGRAL is configured in the application. To accept the redirection, we can do either of the following tasks:
- Set the com.ibm.ws.webservices.HttpRedirectEnabled Java system property to true.
- Programmatically set the com.ibm.wsspi.webservices.Constants.HTTP_REDIRECT_ENABLED property to a java.lang.Boolean object in the Stub or Call object before invoking the service. For example, use any of the following java.lang.Boolean values to set the property to true:
- Boolean.TRUE
- new Boolean(true)
- new Boolean("true")
Related tasks
Secure Web services applications at the transport level
Set additional HTTP transport properties for JAX-RPC Web services with an assembly tool
Set additional HTTP transport properties using the wsadmin command-line tool
Set a Web services client to access resources using a Web proxy
HTTP transport custom properties for Web services applications
Java virtual machine custom properties
Web services specifications and APIs