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
  • Field Details

    • 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:
  • 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 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