【问题标题】:Error while invoking API with DSS endpoint in WSO2 EI 6.6.0在 WSO2 EI 6.6.0 中使用 DSS 端点调用 API 时出错
【发布时间】:2021-01-03 21:25:21
【问题描述】:

我正在尝试使用 Dataservice 端点调用 API。这是 API 的顺序。

<?xml version="1.0" encoding="UTF-8"?>
<sequence name="atms-v1-getATMInfo-in-sequence" xmlns="http://ws.apache.org/ns/synapse">
    <property name="SEQ_NAME" scope="default" type="STRING" value="atms_v1_getATMInfo_inSeq"/>
    <property action="remove" name="TRANSPORT_HEADERS" scope="axis2"/>
    <header name="Accept" scope="transport" value="application/json"/>
    <log level="full"/>
    <call>
        <endpoint name="AtmInfoEndPoint">
            <address uri="https://127.0.0.1:8243/services/atmService"/>
        </endpoint>
    </call>
    </response>
</sequence>

但是当我调用 API 时,我收到一个错误

[2020-09-17 07:22:58,565] ERROR {org.apache.synapse.transport.passthru.ServerWorker} - Error processing GET request for : /services/atmService/atms org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation not found is /services/atmService/atms and the WSA Action = null. If this EPR was previously reachable, please contact the server administrator.
    at org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:102)
    at org.apache.axis2.engine.Phase.invoke(Phase.java:329)
    at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
    at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
    at org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:368)
    at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:189)
    at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)

我查看了一些文档,但找不到答案。请有人告诉我如何解决这个问题。谢谢。

【问题讨论】:

  • 能否也附上数据服务配置

标签: wso2 wso2esb wso2dss


【解决方案1】:

您必须在调用端点之前设置肥皂动作。肥皂动作应该是数据服务的操作名称:

<property name="SOAPAction" scope="transport" value="urn:op_name"/>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-12-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多