WSO2 ESB服务代理未根据配置超时
我们正在使用最新版本的WSO2 ESB(4.6.0)。我们正在探索如何将代理服务实现到web服务。详情如下: Axis2 Webservice自定义服务代理是使用WSO2设置的。配置如下: 代理XML:此synapse配置是使用WSO2 UI生成的WSO2 ESB服务代理未根据配置超时,wso2,wso2esb,synapse,Wso2,Wso2esb,Synapse,我们正在使用最新版本的WSO2 ESB(4.6.0)。我们正在探索如何将代理服务实现到web服务。详情如下: Axis2 Webservice自定义服务代理是使用WSO2设置的。配置如下: 代理XML:此synapse配置是使用WSO2 UI生成的 <proxy xmlns="http://ws.apache.org/ns/synapse" name="StockQuoteProxy" transports="https,http" statistics="enable" trace="
<proxy xmlns="http://ws.apache.org/ns/synapse" name="StockQuoteProxy" transports="https,http" statistics="enable" trace="enable" startOnLoad="true">
<target faultSequence="myFaultHandler">
<inSequence>
<property name="DISABLE_CHUNKING" value="true" scope="axis2" type="STRING"/>
</inSequence>
<outSequence>
<send/>
</outSequence>
<endpoint>
<address uri="http://localhost:9000/services/SimpleStockQuoteService">
<timeout>
<duration>3000</duration>
<responseAction>fault</responseAction>
</timeout>
<suspendOnFailure>
<errorCodes>101504,101505</errorCodes>
<initialDuration>1000</initialDuration>
<progressionFactor>2.0</progressionFactor>
<maximumDuration>10000</maximumDuration>
</suspendOnFailure>
<markForSuspension>
<errorCodes>101507,101508,101505,101506,101509,101500,101510,101001,101000,101503,101504,101501</errorCodes>
<retriesBeforeSuspension>1</retriesBeforeSuspension>
<retryDelay>1</retryDelay>
</markForSuspension>
</address>
</endpoint>
</target>
<publishWSDL uri="http:// localhost:9000/services/SimpleStockQuoteService?wsdl"/>
<description></description>
</proxy>
它最终超时并抛出套接字异常
根据规范()的规定,超时发生后,端点应进入超时状态,但在这种情况下,端点仍处于活动状态,既不是错误消息,也不是丢弃消息。有时它会抛出错误代码504。但这一行动并不一致
如果最终的Web服务非常慢,请告知给定代理服务超时/丢弃消息所需的更改。如果您使用的是来自axis2.xml(位于CARBON_HOME/repository/conf/axis2目录)的http传输,您可以通过添加参数在特定传输发送器中配置超时参数来修复此问题。比如说,
<parameter name="SO_TIMEOUT">3000</parameter>
<parameter name="CONNECTION_TIMEOUT">3000</parameter>
3000
3000
问候,,
Asanka Sanjeewa
<timeout>
<duration>3000</duration>
<responseAction>fault</responseAction>
</timeout>
**synapse.properties**
synapse.global_timeout_interval=3000
synapse.connection.read_timeout=3000
synapse.connection.connect_timeout=3000
synapse.timeout_handler_interval=3000
**nhttp.properties**
http.socket.timeout=5000
<parameter name="SO_TIMEOUT">3000</parameter>
<parameter name="CONNECTION_TIMEOUT">3000</parameter>