我正在使用WSO2 ESB4.6.0,在特定的时刻,需要对外部web服务进行阻塞调用。为此,我使用了呼叫调停人:
<callout serviceURL="http://localhost:9773/services/OrderService" action="urn:mediate">
<source xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/" xpath="s11:Body/child::*[fn:position()=1]"/>
<target xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/" xpath="s11:Body/child::*[fn:position()=1]"/>
</callout>问题是,有时候,这个服务可能需要大约100秒才能完成和响应,但是标注会在30秒内抛出一个超时错误。
我想知道的是:如何增加这个超时时间?
编辑
将synapse.global_timeout_interval改为120000对标注调停人没有影响。超时时间持续30秒。
发布于 2014-04-29 00:51:07
当您将值设置为大于120秒的值时,我们需要在存储库/conf/中的synapse.properties文件中编辑“synapse.properties”值。
也可以将结束点的超时设置为wel。
<timeout>
<duration>1000</duration>
<responseAction>discard</responseAction>
</timeout>有关更多详细信息:https://docs.wso2.org/display/ESB481/Endpoint+Error+Handling
https://stackoverflow.com/questions/23350155
复制相似问题