【发布时间】:2016-12-12 16:27:35
【问题描述】:
我是 mule esb 的新手。我想尝试通过在 mule 中设置代理来使 API 能够访问另一个系统。
这是一个将命中另一个系统的程序代码。
<until-successful synchronous="false"
failureExpression="#[header:INBOUND:http.status != 200]"
deadLetterQueue-ref="failedToCallback" maxRetries="${max.retries}"
secondsBetweenRetries="${second.between.retries}"
objectStore-ref="objectStore" doc:name="Until Successful">
<processor-chain doc:name="Processor Chain">
<http:outbound-endpoint exchange-pattern="request-response"
method="GET"
address="http://#[flowVars['urlcallback']]?id=#[flowVars['id']]"
contentType="text/xml" doc:name="HTTP" />
</processor-chain>
</until-successful>
但是使用这段代码,由于连接超时,我无法点击 url,所以我需要使用代理。
有人知道我应该从哪里开始制作代理吗?
【问题讨论】: