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
FieldsModifier and TypeFieldDescriptionstatic final StringDefault XPath expression used for extracting alllocationattributes from the WSDL definition.Fields inherited from class org.springframework.ws.client.support.destination.AbstractCachingDestinationProvider
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected URIAbstract template method that looks up the URI.voidsetLocationExpression(String expression) Sets the XPath expression to use when extracting the service locationURIfrom a WSDL.voidsetWsdl(org.springframework.core.io.Resource wsdlResource) Sets a WSDL location from which the service destinationURIwill 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 alllocationattributes 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 destinationURIwill be resolved. -
setLocationExpression
Sets the XPath expression to use when extracting the service locationURIfrom a WSDL.The expression can use the following bound prefixes:
Prefix Namespace wsdlhttp://schemas.xmlsoap.org/wsdl/soaphttp://schemas.xmlsoap.org/wsdl/soap/soap12http://schemas.xmlsoap.org/wsdl/soap12/Defaults to
DEFAULT_WSDL_LOCATION_EXPRESSION. -
lookupDestination
Description copied from class:AbstractCachingDestinationProviderAbstract template method that looks up the URI.If caching is enabled, this method will only be called once.
- Specified by:
lookupDestinationin classAbstractCachingDestinationProvider- Returns:
- the destination URI
-