2016-08-03 98 views
0

我有一个调用Web服务的代理服务。有时会发出错误代码303001,并在刷新后再次运行。我更新的想法是我在服务列表中打开管理面板选择我的服务的设计视图,然后单击下一步完成。正确,1小时后该服务的工作后,抛出了错误代码 我的服务:执行默认错误序列错误代码303001 wso2 esb

<?xml version="1.0" encoding="UTF-8"?> 
<proxy xmlns="http://ws.apache.org/ns/synapse" 
    name="BillVerification" 
    transports="https,http" 
    statistics="disable" 
    trace="disable" 
    startOnLoad="true"> 
<target> 
    <inSequence> 
    <class name="org.sample.mediators.citydi.HashMediatorCityDI"/> 
    <log level="full" category="FATAL"> 
     <property name="fprever" value="justyou"/> 
    </log> 
    <property name="DISABLE_CHUNKING" 
       value="true" 
       scope="axis2" 
       type="STRING"/> 
    <send> 
     <endpoint> 
      <address uri="http://checkbill2.citydi.net/CheckBill.asmx?wsdl" format="soap12"> 
       <suspendOnFailure> 
       <initialDuration>100000000</initialDuration> 
       <progressionFactor>1.0</progressionFactor> 
       <maximumDuration>100000000</maximumDuration> 
       </suspendOnFailure> 
      </address> 
     </endpoint> 
    </send> 
    <log level="full" category="FATAL"> 
     <property name="send1" value="send1"/> 
    </log> 
    </inSequence> 
    <outSequence> 
    <log level="full"> 
     <property name="beforeSENDout" value="2"/> 
    </log> 
    <send/> 
    <log level="full" category="FATAL"> 
     <property name="send2" value="send2"/> 
    </log> 
    </outSequence> 
</target> 
<publishWSDL uri="http://checkbill2.citydi.net/CheckBill.asmx?wsdl"/> 
<description/> 
</proxy> 
+0

您不应在发送介体后添加任何介体。您可以在发送中介并检查后删除所有日志中介。另外一个完整的堆栈跟踪可能有助于调试问题。 – ycr

+0

错误代码303001 [1]似乎表明地址端点存在问题。您是否可以验证端点是否始终处于活动状态[1] https://docs.wso2.com/display/ESB451/Error+Handling+and+Error+Codes –

+0

是的,它始终处于活动状态。对肥皂版本有任何问题吗? – behzad

回答

1

303001 =地址端点还没有准备好

连接也许是因为公司的Proxy /防火墙?

您错误地认为您的端点始终处于活动状态:请使用命名端点而不是匿名端点,然后查看wso2 Web控制台:我想它会被停用(“操作”变为“开启”)

对于您的情况,使用匿名端点,当您编辑/保存您的代理时,端点将打开。

如果您不希望您的端点被暂停加是这样的:

<suspendOnFailure> 
    <errorCodes>-1</errorCodes> 
    <initialDuration>0</initialDuration> 
    <progressionFactor>1.0</progressionFactor> 
    <maximumDuration>0</maximumDuration> 
</suspendOnFailure> 

如果您不希望您的端点管理特定超时,添加如下内容:

<markForSuspension> 
    <errorCodes>-1</errorCodes> 
    <retriesBeforeSuspension>0</retriesBeforeSuspension> 
    <retryDelay>0</retryDelay> 
</markForSuspension> 
+0

你是对的。我使用了一个匿名端点,并在多次事务后关闭,我将它更改为命名端点,并且它已正常工作。坦 – behzad