org.springframework.ws.client.support.destination
Class Wsdl11DestinationProvider
java.lang.Object
org.springframework.ws.client.support.destination.AbstractCachingDestinationProvider
org.springframework.ws.client.support.destination.Wsdl11DestinationProvider
- All Implemented Interfaces:
- DestinationProvider
public class Wsdl11DestinationProvider
- extends AbstractCachingDestinationProvider
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
Method Summary |
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(Resource wsdlResource)
Sets a WSDL location from which the service destination URI will be resolved. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_WSDL_LOCATION_EXPRESSION
public static final String DEFAULT_WSDL_LOCATION_EXPRESSION
- Default XPath expression used for extracting all
location
attributes from the WSDL definition.
- See Also:
- Constant Field Values
Wsdl11DestinationProvider
public Wsdl11DestinationProvider()
setWsdl
public void setWsdl(Resource wsdlResource)
- Sets a WSDL location from which the service destination
URI
will be resolved.
setLocationExpression
public void setLocationExpression(String expression)
- Sets the XPath expression to use when extracting the service location
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
.
lookupDestination
protected URI 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 class AbstractCachingDestinationProvider
- Returns:
- the destination URI
Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.