Announcement Announcement Module
No announcement yet.
Spring Integration - Scheduling a Webservice Call. Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Integration - Scheduling a Webservice Call.

    We have a use case in our Project, where i need to call(Pull) a webservice with no input parameters every 3-5 seconds to get some data?

    What is best approach to achieve this in Spring Integration? Do we have any samples?

  • #2
    Use a polled inbound-adapter (e.g. with expression="some empty input") and a ws:outbound-gateway (SOAP) or http:outbound-gateway (ReST).

    "some empty input" would probably be an "empty" XML document of some kind for a SOAP WS, or can be anything (ignored by the gateway) for a ReST web service.