I took the http example and worked it in but I'm getting the following error:
Here is my setup for the http outbound gateway:HTML Code:org.springframework.beans.ConversionNotSupportedException: Failed to convert value of type 'org.springframework.http.HttpStatus' to required type 'java.lang.String'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.springframework.http.HttpStatus] to required type [java.lang.String]: no matching editors or conversion strategy found
Here is my setup for http inbound gateway and web.xml:Code:<int:gateway id="requestGateway" service-interface="com.test.RequestGateway" default-request-channel="requestChannel"/> <int:channel id="requestChannel"/> <int-http:outbound-gateway request-channel="requestChannel" url="http://localhost:8080/http/someService/test" http-method="POST" expected-response-type="java.lang.String"/>
web.xml:
httpTest-servlet.xml:Code:<servlet> <servlet-name>httpTest</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>httpTest</servlet-name> <url-pattern>/someService/*</url-pattern> </servlet-mapping>
Any suggestions?Code:<bean class="org.springframework.integration.http.inbound.UriPathHandlerMapping" /> <int-http:inbound-gateway request-channel="receiveChannel" path="/someService/test" supported-methods="POST"/> <int:channel id="receiveChannel"/> <int:service-activator input-channel="receiveChannel" expression="payload + ' from the other side'"/>
Thanks
Netta


Reply With Quote
