【问题标题】:How to create a Default Endpoint in wso2 ESB如何在 wso2 ESB 中创建默认端点
【发布时间】:2014-10-29 14:29:42
【问题描述】:

我有不同的服务,并且在我的 WSO2 DSS 中有各自的端点,例如

http://localhost:9764/services/Get_details/ 

http://localhost:9764/services/muser_DataService/ 

等

所以,当我在 WSO2 ESB 中创建代理服务时,我想在我的代理中提供一个默认端点,而不是 DSS 中的特定端点

对于这种方法,我使用了收件人列表组,如下所示

<endpoint xmlns="http://ws.apache.org/ns/synapse" name="Endpoint">

  <endpoint name="null_value">
     <address uri="http://localhost:9764/services/null_value/">
        <suspendOnFailure>
           <progressionFactor>1.0</progressionFactor>
        </suspendOnFailure>
        <markForSuspension>
           <retriesBeforeSuspension>0</retriesBeforeSuspension>
           <retryDelay>0</retryDelay>
        </markForSuspension>
     </address>
  </endpoint>
  <endpoint name="Get_details">
     <address uri="http://localhost:9764/services/Get_details/">
        <suspendOnFailure>
           <progressionFactor>1.0</progressionFactor>
        </suspendOnFailure>
        <markForSuspension>
           <retriesBeforeSuspension>0</retriesBeforeSuspension>
           <retryDelay>0</retryDelay>
        </markForSuspension>
     </address>
  </endpoint>
  <endpoint name="Get_geodetails">
     <address uri="http://localhost:9764/services/Get_geodetails/">
        <suspendOnFailure>
           <progressionFactor>1.0</progressionFactor>
        </suspendOnFailure>
        <markForSuspension>
           <retriesBeforeSuspension>0</retriesBeforeSuspension>
           <retryDelay>0</retryDelay>
        </markForSuspension>
     </address>
  </endpoint>
  <endpoint name="muser_DataService">
     <address uri="http://localhost:9764/services/muser_DataService/">
        <suspendOnFailure>
           <progressionFactor>1.0</progressionFactor>
        </suspendOnFailure>
        <markForSuspension>
           <retriesBeforeSuspension>0</retriesBeforeSuspension>
           <retryDelay>0</retryDelay>
        </markForSuspension>
     </address>
  </endpoint>

但是当我在我的代理中使用此端点时,进程无法在创建的收件人列表组中找到所需的端点并抛出如下所示的错误

"Fault":{"faultcode":"axis2ns2:Client","faultstring":"The endpoint reference (EPR) for the Operation not found is \/services\/Get_details\/ and the WSA Action = null. If this EPR was previously reachable, please contact the server administrator.","detail":""}

如何才能成功执行......

【问题讨论】:

    标签: wso2 wso2esb wso2dss


    【解决方案1】:

    收件人端点用于不同的目的。如果您的后端服务 URL 不同,您应该有不同的端点定义。然后在您的代理中使用适当的端点。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多