【发布时间】:2016-10-26 19:32:28
【问题描述】:
因为我在本地进行测试,所以我在同一个项目中有一个 Web 服务提供者和消费者流。在我的消费者流中,我有一个 HTTP 请求连接器,它应该会命中提供者流,但问题是在调试时它显示超时以命中提供者流,如果我再次跳过它会命中提供者流。同样在执行提供者流程之后,控制不会返回到消费者流程。 这是 HTTP 连接器配置:
<http:request-config name="HTTP_Request_Configuration" host="localhost" port="8081" basePath="/api" connectionIdleTimeout="10000000" doc:name="HTTP Request Configuration"/>
<http:request config-ref="HTTP_Request_Configuration" path="/PatientAdmission" method="POST" doc:name="HTTP"/>
我错过了什么吗?
以下是提供者 HTTP 侦听器配置
<http:listener-config name="api-httpListenerConfig" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration"/>
<http:listener config-ref="api-httpListenerConfig" path="/api/*" metadata:id="426556ee-3ad8-4231-8c4c-ce3922720e6a" doc:name="HTTP"/>
【问题讨论】:
-
显示暴露服务的流程,以便配置消费者连接器
标签: mule mule-component