The WSDL extension elements used to configure an HTTP consumer endpoint are defined in the namespace http://cxf.apache.org/transports/http/configuration
. It is commonly referred to using the prefix http-conf
. In order to use the HTTP configuration elements you must add the line shown in Example 8.7 to the definitions
element of your endpoint's WSDL document.
Example 8.7. HTTP Consumer WSDL Element's Namespace
<definitions ... xmlns:http-conf="http://cxf.apache.org/transports/http/configuration
The http-conf:client
element is used to specify the connection properties of an HTTP consumer in a WSDL document. The http-conf:client
element is a child of the WSDL port
element. It has the same attributes as the client
element used in the configuration file. The attributes are described in Table 8.2.
Example 8.8 shows a WSDL fragment that configures an HTTP consumer endpoint to specify that it does not interact with caches.
Example 8.8. WSDL to Configure an HTTP Consumer Endpoint
<service ...> <port ...> <soap:address ... /> <http-conf:client CacheControl="no-cache" /> </port> </service>