public class Wsdl11DestinationProvider extends AbstractCachingDestinationProvider
DestinationProvider
that resolves a destination URI from a WSDL file.
The extraction relies on an XPath expression to locate the URI. By default, the DEFAULT_WSDL_LOCATION_EXPRESSION
will be used, but this expression can be overridden by setting the locationExpression
property.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_WSDL_LOCATION_EXPRESSION
Default XPath expression used for extracting all
location attributes from the WSDL definition. |
logger
Constructor and Description |
---|
Wsdl11DestinationProvider() |
Modifier and Type | Method and Description |
---|---|
protected URI |
lookupDestination()
Abstract template method that looks up the URI.
|
void |
setLocationExpression(String expression)
Sets the XPath expression to use when extracting the service location
URI from a WSDL. |
void |
setWsdl(org.springframework.core.io.Resource wsdlResource)
Sets a WSDL location from which the service destination
URI will be resolved. |
getDestination, setCache
public static final String DEFAULT_WSDL_LOCATION_EXPRESSION
location
attributes from the WSDL definition.public void setWsdl(org.springframework.core.io.Resource wsdlResource)
URI
will be resolved.public void setLocationExpression(String expression)
URI
from a WSDL.
The expression can use the following bound prefixes:
Prefix Namespace wsdl
http://schemas.xmlsoap.org/wsdl/
soap
http://schemas.xmlsoap.org/wsdl/soap/
soap12
http://schemas.xmlsoap.org/wsdl/soap12/
Defaults to DEFAULT_WSDL_LOCATION_EXPRESSION
.
protected URI lookupDestination()
AbstractCachingDestinationProvider
If caching is enabled, this method will only be called once.
lookupDestination
in class AbstractCachingDestinationProvider
Copyright © 2020 Pivotal Software. All rights reserved.