Results 1 to 4 of 4

Thread: Documentation is out of sync with the XSD

  1. #1
    Join Date
    Jun 2008
    Posts
    18

    Question 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. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    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

  3. #3
    Join Date
    Jun 2008
    Posts
    18

    Default 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?

  4. #4
    Join Date
    Jun 2008
    Posts
    18

    Default

    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •