2014-10-28 49 views
0

我在WSO2 DSS不同的服务,并有相应的端点像如何在WSO2创建一个默认端点ESB

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":""} 
抛出一个错误

什么可以做成功执行......

回答

0

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