Mule:触发调用System API的进程API

时间:2017-03-29 22:33:04

标签: mule

我已经构建了一个进程API(这是一个POST),它调用另一个系统API来检索一些信息,问题是我如何触发进程API以进行测试?另外,如果我要添加轮询器,轮询器将如何调用此过程API?

     <flow name="postData" processingStrategy="synchronous">

    <http:request config-ref="call-system-api" path="/getInfo" method="GET" doc:name="call backend">
        <http:request-builder>
            <http:query-param paramName="modifiedAfter" value="#[message.inboundProperties.'http.query.params'.get(&quot;modifiedAfter&quot;)]"/>
        </http:request-builder>
    </http:request>

1 个答案:

答案 0 :(得分:0)

对于HTTP请求, 你可以邮递员,发布请求。 如果要添加轮询器,则将轮询器作为流的第一个组件。  这是一个例子。

<poll doc:name="Poll">
   <http:request config-ref="" path="" method="" doc:name="HTTP"/>
 </poll>
相关问题