SoapConnectionPool
The SoapConnectionPool
is used to define a SOAP web service endpoint. It creates a SOAP dispatcher using an endpoint URL, a web service qualified name and a port qualified name.
Configuration
Name | Type, usage constraints, defaults | Description |
---|---|---|
endpoint | required: paraVal default: none type: http URL | The endpoint URL of the web service. |
serviceName | required: paraVal default: none type: QName | The qualified name of the web service. |
portName | required: paraVal default: none type: QName | The qualified name of the web service's port. |
sslSettings | optional: paraMap default: none type: string/string | The SSL configuration settings used for this connection pool. It uses the Java system property names to set up the key and trust stores. |
soapVersion | optional: paraVal default: none type: QName | The version of the SOAP binding that shall be used. Supported are 1.1 and 1.2. |
username | optional: paraVal default: none type: QName | The username used in the HTTP basic authentication scheme. |
password | optional: paraVal default: none type: string sensitive: true | The password used in the HTTP basic authentication scheme. If omitted, the username is used as a password instead. |
sessionMaintain | optional: paraVal default: true type: boolean | A Boolean value indicating whether the SOAP connection shall maintain a session and store session cookies. |
Example
Example using an unencrypted connection
<object type="SoapConnectionPool" name="soapService">
<dp:paraVal name="endpoint" value="http://localhost:1234/ws"/>
<dp:paraVal name="serviceName" value="${xml:qname('http://dom.ch/ws','Ws')"/>
<dp:paraVal name="portName" value="${xml:qname('http://dom.ch/ws','WsPort')"/>
</object>
Example using an SSL connection
<object type="SoapConnectionPool" name="soapService">
<dp:paraVal name="endpoint" value="https://localhost:1234/ws"/>
<dp:paraVal name="serviceName" value="${xml:qname('http://dom.ch/ws','Ws')"/>
<dp:paraVal name="endpoint" value="${xml:qname('http://dom.ch/ws','WsPort')"/>
<dp:paraMap name="sslSettings">
<value name="javax.net.ssl.trustStore" value="truststore.jks"/>
<value name="javax.net.ssl.trustStorePassword" value="secret"/>
<value name="javax.net.ssl.trustStoreType" value="jks"/>
</dp:paraMap>
</object>
Example using basic authentication
<object type="SoapConnectionPool" name="soapService">
<dp:paraVal name="endpoint" value="http://localhost:1234/ws"/>
<dp:paraVal name="serviceName" value="${xml:qname('http://dom.ch/ws','Ws')"/>
<dp:paraVal name="portName" value="${xml:qname('http://dom.ch/ws','WsPort')"/>
<dp:paraVal name="username" value="my user"/>
<dp:paraVal name="password" value="secret"/>
</object>