Class Wsdl11DestinationProvider
java.lang.Object
org.springframework.ws.client.support.destination.AbstractCachingDestinationProvider
org.springframework.ws.client.support.destination.Wsdl11DestinationProvider
- All Implemented Interfaces:
DestinationProvider
Implementation of the
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.
- Since:
- 1.5.4
- Author:
- Tareq Abed Rabbo, Arjen Poutsma
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Default XPath expression used for extracting alllocation
attributes from the WSDL definition.Fields inherited from class org.springframework.ws.client.support.destination.AbstractCachingDestinationProvider
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected URI
Abstract template method that looks up the URI.void
setLocationExpression
(String expression) Sets the XPath expression to use when extracting the service locationURI
from a WSDL.void
setWsdl
(org.springframework.core.io.Resource wsdlResource) Sets a WSDL location from which the service destinationURI
will be resolved.Methods inherited from class org.springframework.ws.client.support.destination.AbstractCachingDestinationProvider
getDestination, setCache
-
Field Details
-
DEFAULT_WSDL_LOCATION_EXPRESSION
Default XPath expression used for extracting alllocation
attributes from the WSDL definition.- See Also:
-
-
Constructor Details
-
Wsdl11DestinationProvider
public Wsdl11DestinationProvider()
-
-
Method Details
-
setWsdl
public void setWsdl(org.springframework.core.io.Resource wsdlResource) Sets a WSDL location from which the service destinationURI
will be resolved. -
setLocationExpression
Sets the XPath expression to use when extracting the service locationURI
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
. -
lookupDestination
Description copied from class:AbstractCachingDestinationProvider
Abstract template method that looks up the URI.If caching is enabled, this method will only be called once.
- Specified by:
lookupDestination
in classAbstractCachingDestinationProvider
- Returns:
- the destination URI
-