Announcement Announcement Module
Collapse
No announcement yet.
Documentation is out of sync with the XSD Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Documentation is out of sync with the XSD

    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.

  • #2
    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:
    Code:
    <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

    Comment


    • #3
      Ok...

      Alright, I did that, but I'm still not seeing any communication coming across the wire. On the server side I've got:
      Code:
      <bean name="httpInvokerAdapter"  	class="org.springframework.integration.adapter.httpinvoker.HttpInvokerGateway">
          	<constructor-arg ref="invokerChannel"/>
      	</bean>
      With this in web.xml:
      Code:
      <servlet>
        	<servlet-name>httpInvokerAdapter</servlet-name>
        	<servlet-class>org.springframework.web.context.support.HttpRequestHandlerServlet</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:
      Code:
      <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?

      Comment


      • #4
        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?

        Comment

        Working...
        X