Spring Web Services Framework

org.springframework.ws.client.support.destination
Class Wsdl11DestinationProvider

java.lang.Object
  extended by org.springframework.ws.client.support.destination.AbstractCachingDestinationProvider
      extended by 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

Field Summary
static String DEFAULT_WSDL_LOCATION_EXPRESSION
          Default XPath expression used for extracting all location attributes from the WSDL definition.
 
Fields inherited from class org.springframework.ws.client.support.destination.AbstractCachingDestinationProvider
logger
 
Constructor Summary
Wsdl11DestinationProvider()
           
 
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 org.springframework.ws.client.support.destination.AbstractCachingDestinationProvider
getDestination, setCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Wsdl11DestinationProvider

public Wsdl11DestinationProvider()
Method Detail

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:

PrefixNamespace
wsdlhttp://schemas.xmlsoap.org/wsdl/
soaphttp://schemas.xmlsoap.org/wsdl/soap/
soap12http://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

Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.