PDA

View Full Version : Documentation is out of sync with the XSD



kmurphy
Sep 4th, 2008, 01:59 PM
I'm trying to follow the current documentation to setup a httpinvoker-handler and httpinvoker-gateway. The gateway setup seems to match with the documentation, and near as I can tell it's working, but the httpinvoker-handler configuration given in the documentation (" <httpinvoker-handler id="httpTarget" channel="httpInvokerOutput" url="http://somehost/test"/> ") doesn't match the XSD ("http://www.springframework.org/schema/integration/spring-integration-adapters-1.0.xsd"). I can't figure out how to specify the channel that the httpinvoker-handler should output to because the XSD doesn't define a channel attribute anymore.

Mark Fisher
Sep 4th, 2008, 02:12 PM
In M6, the configuration for a <service-activator/> accepts any handler in its "ref" attribute. So, something like the following should be what you are looking for:


<service-activator input-channel="httpInvokerOutput"
ref="httpTarget"
output-channel="httpInvokerResponse"/>

<httpinvoker-handler id="httpTarget" url="http://somehost/test"/>


Sorry, that seems to have been overlooked in the doc updates.

Regards,
Mark

kmurphy
Sep 4th, 2008, 04:59 PM
Alright, I did that, but I'm still not seeing any communication coming across the wire. On the server side I've got:

<bean name="httpInvokerAdapter" class="org.springframework.integration.adapter.httpinvoke r.HttpInvokerGateway">
<constructor-arg ref="invokerChannel"/>
</bean>
With this in web.xml:

<servlet>
<servlet-name>httpInvokerAdapter</servlet-name>
<servlet-class>org.springframework.web.context.support.HttpReques tHandlerServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>httpInvokerAdapter</servlet-name>
<url-pattern>/integrationgateway/httpInvokerAdapter</url-pattern>
</servlet-mapping>
And on the client side I've got:

<integration:httpinvoker-handler id="httpTarget" url="http://${host.server}:${host.port}/app/integrationgateway/httpInvokerAdapter"/>
<integration:service-activator input-channel="invokerChannelInput" output-channel="invokerChannelOutput" ref="httpTarget"/>

What am I missing/doing wrong?

kmurphy
Sep 8th, 2008, 09:01 AM
Anyone? Anything I should try instead? I'm pushing the messages into the channel, but near as I can tell they're never making it into the remote channel. Is there some way I can verify the connection is being made between the client and server?