2016-08-03 115 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