[SWS-147] Mentioned 'transformWsdlLocations' init-param.

This commit is contained in:
Rick Evans
2007-07-11 16:34:46 +00:00
parent 1ee6cd1eb1
commit 2d0ea5b2b2
3 changed files with 91 additions and 56 deletions

View File

@@ -47,13 +47,13 @@ import org.springframework.ws.wsdl.WsdlDefinition;
* instances.
* <p/>
* This servlet automatically detects {@link EndpointAdapter EndpointAdapters}, {@link EndpointMapping
* EndpointMappings}, and {@link EndpointExceptionResolver EndpointExceptionResolvers} by type.
* EndpointMappings}, and {@link EndpointExceptionResolver EndpointExceptionResolvers} <i>by type</i>.
* <p/>
* This servlet also automatically detects any {@link WsdlDefinition} in its application context. This WSDL is
* exposed under the bean name: for example, a {@link WsdlDefinition} bean named '<code>echo</code>' will be exposed as
* <code>echo.wsdl</code> in this servlet's context: <code>http://localhost:8080/spring-ws/echo.wsdl</code>. When the
* <code>transformWsdlLocations</code> init-param is set to <code>true</code> in this servlet's configuration in
* <code>web.xml</code>, all <code>location</code> attributes in the WSDL definitions will reflect the URL of the
* This servlet also automatically detects any {@link WsdlDefinition} defined in its application context. This WSDL is
* exposed under the bean name: for example, a <code>WsdlDefinition</code> bean named '<code>echo</code>' will be
* exposed as <code>echo.wsdl</code> in this servlet's context: <code>http://localhost:8080/spring-ws/echo.wsdl</code>.
* When the <code>transformWsdlLocations</code> init-param is set to <code>true</code> in this servlet's configuration
* in <code>web.xml</code>, all <code>location</code> attributes in the WSDL definitions will reflect the URL of the
* incoming request.
*
* @author Arjen Poutsma

View File

@@ -44,8 +44,9 @@ import org.w3c.dom.Attr;
import org.w3c.dom.Document;
/**
* Adapter to use the <code>WsdlDefinition</code> interface with the generic <code>DispatcherServlet</code>. Reads the
* source from the mapped <code>WsdlDefinition</code> implementation, and writes that as result to the
* Adapter to use the <code>WsdlDefinition</code> interface with the generic <code>DispatcherServlet</code>.
* <p/>
* Reads the source from the mapped <code>WsdlDefinition</code> implementation, and writes that as the result to the
* <code>HttpServletResponse</code>.
* <p/>
* If the property <code>transformLocations</code> is set to <code>true</code>, this adapter will change
@@ -91,8 +92,8 @@ public class WsdlDefinitionHandlerAdapter extends TransformerObjectSupport imple
/**
* Sets the XPath expression used for extracting the <code>location</code> attributes from the WSDL 1.1 definition.
* <p/>
* Defaults to <code>DEFAULT_LOCATION_EXPRESSION</code>.
*
* @see #DEFAULT_LOCATION_EXPRESSION
*/
public void setLocationExpression(String locationExpression) {