INT-994 SimpleEchoResponder now echos the same text as provided in the request, and the servlet loads on startup.
This commit is contained in:
@@ -16,13 +16,16 @@
|
||||
|
||||
package org.springframework.integration.samples.ws;
|
||||
|
||||
import javax.xml.transform.Source;
|
||||
import javax.xml.transform.dom.DOMSource;
|
||||
|
||||
import org.springframework.integration.xml.source.DomSourceFactory;
|
||||
|
||||
public class SimpleEchoResponder {
|
||||
public DOMSource issueResponseFor(Object request) {
|
||||
return (DOMSource) new DomSourceFactory().createSource(
|
||||
"<echoResponse xmlns=\"http://www.springframework.org/spring-ws/samples/echo\">hello</echoResponse>");
|
||||
|
||||
public Source issueResponseFor(DOMSource request) {
|
||||
return new DomSourceFactory().createSource(
|
||||
"<echoResponse xmlns=\"http://www.springframework.org/spring-ws/samples/echo\">" +
|
||||
request.getNode().getTextContent() + "</echoResponse>");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
<param-name>contextConfigLocation</param-name>
|
||||
<param-value>WEB-INF/spring-ws-config.xml</param-value>
|
||||
</init-param>
|
||||
<load-on-startup>1</load-on-startup>
|
||||
</servlet>
|
||||
|
||||
<servlet-mapping>
|
||||
|
||||
Reference in New Issue
Block a user