Permalink
Browse files

updating http ws example

  • Loading branch information...
1 parent 0478900 commit 43ef039423346734a710481d48bafff45ea10cda @markfisher markfisher committed Sep 10, 2012
@@ -7,13 +7,11 @@
http://www.springframework.org/schema/integration
http://www.springframework.org/schema/integration/spring-integration.xsd">
-
-
<si:channel id="tripQuoteRequestsChannel"/>
<si:channel id="tripQuoteResponseChannel" />
-
<bean id="tripQuoteProcessor" class="com.manning.siia.TripQuoteRequestProcessor"/>
+
<si:service-activator ref="tripQuoteProcessor" method="processTripRequest" input-channel="tripQuoteRequestsChannel"
output-channel="tripQuoteResponseChannel" />
@@ -7,8 +7,10 @@
http://www.springframework.org/schema/integration/http
http://www.springframework.org/schema/integration/http/spring-integration-http.xsd">
- <si-http:inbound-gateway id="httpTripInboundGateway"
+ <bean class="org.springframework.integration.http.inbound.UriPathHandlerMapping"/>
+
+ <si-http:inbound-gateway id="httpTripInboundGateway" path="/"
request-channel="tripQuoteRequestsChannel"
- reply-channel="tripQuoteResponseChannel" />
+ reply-channel="tripQuoteResponseChannel"/>
</beans>
@@ -42,7 +42,7 @@
<servlet>
<servlet-name>httpTripInboundGateway</servlet-name>
- <servlet-class>org.springframework.ws.transport.http.MessageDispatcherServlet</servlet-class>
+ <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>
@@ -54,7 +54,7 @@
<servlet-mapping>
<servlet-name>httpTripInboundGateway</servlet-name>
- <url-pattern>/httpquote</url-pattern>
+ <url-pattern>/httpquote/*</url-pattern>
</servlet-mapping>
</web-app>

0 comments on commit 43ef039

Please sign in to comment.