【问题标题】:The endpoint reference (EPR) for the Operation not found when invoking proxy service in WSO2 ESB在 WSO2 ESB 中调用代理服务时找不到操作的端点引用 (EPR)
【发布时间】:2019-05-31 13:08:07
【问题描述】:

我正在使用 wso2 esb 5.0。我为调用soap端点创建了代理服务。下面提到了代理服务代码。

<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
       name="LicenseRenewalSystem"
       startOnLoad="true"
       statistics="disable"
       trace="disable"
       transports="http,https">
   <target>
      <inSequence>
         <log/>
         <property expression="get-property('transport','VehicleNo')"
                   name="vehicleNo"
                   scope="default"
                   type="STRING"/>
         <log>
            <property expression="get-property('default','vehicleNo')" name="VehicleNo"/>
         </log>
         <payloadFactory media-type="xml">
            <format>
               <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
                                 xmlns:wsa="http://www.w3.org/2005/08/addressing"
                                 xmlns:sam="http://sample.esb.org">
                  <soapenv:Header/>
                  <soapenv:Body>
                     <sam:getPolicyID>
                        <sam:vehicleNumber>$1</sam:vehicleNumber>
                     </sam:getPolicyID>
                  </soapenv:Body>
               </soapenv:Envelope>
            </format>
            <args>
               <arg evaluator="xml" expression="get-property('default','vehicleNo')"/>
            </args>
         </payloadFactory>
         <log level="full"/>
         <property name="ContentType" scope="axis2" type="STRING" value="text/xml"/>
         <property name="messageType" scope="axis2" value="text/xml"/>
         <call>
            <endpoint>
               <address format="soap12"
                        uri="http://172.17.0.1:9763/services/EmissionTestService?wsdl2"/>
            </endpoint>
         </call>
         <log level="full"/>
      </inSequence>
   </target>
   <description/>
</proxy>

我使用标头值 (VehicleNo) 来传递代理服务。 但是我使用邮递员调用此代理,发生以下错误。

The endpoint reference (EPR) for the Operation not found is http://172.17.0.1:9763/services/EmissionTestService and the WSA Action = null. If this EPR was previously reachable, please contact the server administrator.

谁能帮我解决这个问题。

【问题讨论】:

    标签: soap wso2 wso2esb


    【解决方案1】:

    当找不到代理的相关 WSDL 文件时会出现此类错误。请确保您调用的 Endpoint 在 ESB 实例中可用。

    请参阅指南了解更多信息。 https://wso2.com/library/176/

    这里也回答了类似的问题。 The endpoint reference (EPR) for the Operation not found is

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-01-06
      • 1970-01-01
      • 1970-01-01
      • 2021-06-20
      • 1970-01-01
      相关资源
      最近更新 更多