...
The http-conf:conduit
element has a number of child elements that specify configuration information. They are described below. See also Sun's JSSE Guide for more information on configuring SSL.
Element | Description |
---|---|
| Specifies the HTTP connection properties such as timeouts, keep-alive requests, content types, etc. |
| Specifies the the parameters for configuring the basic authentication method that the endpoint uses preemptively. |
| Specifies the parameters for configuring basic authentication against outgoing HTTP proxy servers. |
| Specifies the parameters used to configure SSL/TLS. |
| Specifies the bean reference or class name of the object that supplies the the basic authentication information used by the endpoint both preemptively or in response to a 401 HTTP challenge. |
| Specifies the bean reference or class name of the object that checks the HTTP(S) URLConnection object in order to establish trust for a connection with an HTTPS service provider before any information is transmitted. |
...
The WSDL extension elements used to configure an HTTP client are defined in the namespace http://cxf.apache.org/transports/http/configuration
. It is commonly refered referred to using the prefix http-conf
. In order to use the HTTP configuration elements you will need to add the line shown below to the definitions
element of your endpoint's WSDL document.
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<service ...> <port ...> <soap:address ... /> <http-conf:client CacheControl="no-cache" /> </port> </service> |
Using java code
How to configure the HTTPConduit for the SOAP Client?
First you need get the HTTPConduit from the Proxy object or Client, then you can set the HTTPClientPolicy, AuthorizationPolicy, ProxyAuthorizationPolicy, TLSClientParameters, and/or HttpBasicAuthSupplier.
...