The conduit element
You configure an HTTP client using the http-conf:conduit element and its children. The http-conf:conduit element takes a single attribute, name , that specifies the WSDL port element that corresponds to the endpoint. The value for the name attribute takes the form portQName .http-conduit . For example, the code below shows the http-conf:conduit element that would be used to add configuration for an endpoint that was specified by the WSDL fragment <port binding="widgetSOAPBinding" name="widgetSOAPPort> if the endpoint's target namespace was http://widgets.widgetvendor.net". Alternatively, the name attribute can be a regular expression to match a URL. This allows configuration of conduits that are not used for purposes of WSDL based endpoints such as JAX-RS and for WSDL retrieval.
http-conf:conduit Element examples
<http-conf:conduit name=
"{http://widgets/widgetvendor.net}widgetSOAPPort.http-conduit">
...
</http-conf:conduit>
<http-conf:conduit name="*.http-conduit">
<!-- you can also using a wild card specify the http-conduit
that you want to configure -->
...
</http-conf:conduit>
<http-conf:conduit name="http://localhost:8080/.">
<!-- you can also use the reg-ex URL to match for
the http-conduit that you want to configure -->
...
</http-conf:conduit>
<http-conf:conduit name="http://localhost:8080/.*">
<!-- you can also using the reg-ex URL matching for
the http-conduit that you want to configure -->
...
</http-conf:conduit>
...
The http-conf:conduit element has a number of child elements that specify configuration information. They are described below. See also Sun's JSSE documentation for more information on configuring SSL.
Element |
Description |
---|---|
http-conf:client |
Specifies the HTTP connection properties such as timeouts, keep-alive requests, content types, etc. |
http-conf:authorization |
Specifies the the parameters for configuring the basic authentication method that the endpoint uses preemptively. |
http-conf:proxyAuthorization |
Specifies the parameters for configuring basic authentication against outgoing HTTP proxy servers. |
http-conf:tlsClientParameters |
Specifies the parameters used to configure SSL/TLS. |
http-conf:authSupplier |
Specifies the bean reference or class name of the object that supplies the authentication information used by the endpoint both preemptively or in response to a 401 HTTP challenge. |
http-conf:trustDecider |
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. |