【问题标题】:SOAP API pass through in WSO2 API manager v3.0.0WSO2 API 管理器 v3.0.0 中的 SOAP API 传递
【发布时间】:2019-11-13 19:17:30
【问题描述】:

我正在使用最新版本的 WSO2 API 管理器并尝试使用 SOAP API 后端作为传递。我无法调用 API,因为在最新版本中没有粘贴soap 请求和soap 动作的选项。文档说明它在那里,但是当我将它作为 docker 容器站起来时,不存在传递soap请求的能力。谁能确认这是否是一个错误以及我是否应该降级到以前的版本? https://apim.docs.wso2.com/en/latest/Learn/Tutorials/expose-a-soap-service-as-a-rest-api/

WSO2 documentation screenshot

WSO2 Dev portal SOAP API pass through invocation screenshot

【问题讨论】:

    标签: wso2 wso2-am


    【解决方案1】:

    您必须将 SOAP Action 和 SOAP Request 参数添加到 Swagger 定义中。

    1. 登录 API Publisher 并打开 api。

    2. 从左侧菜单转到 API 定义选项卡。

    3. 点击编辑按钮。

    4. 在swagger编辑器中,在POST方法参数下添加如下定义并保存api。

          - schema:
            type: string
            description: SOAP request.
            name: SOAP Request
            required: true
            in: body
          - description: SOAPAction header for soap 1.1
            name: SOAPAction
            type: string
            required: false
            in: header
    

    为此创建了一个问题,因为这需要在新版本中修复。 https://github.com/wso2/product-apim/issues/6813

    【讨论】:

    • 谢谢。我能够使用建议的解决方法。
    • 这是我必须添加的确切的招摇定义部分。 parameters: - name: "SOAP Request" in: "body" description: "SOAP request" required: true schema: type: "string" - name: "SOAPAction" in: "header" description: "SOAPAction header" required: false type: "string"
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-04-27
    • 2015-04-03
    • 2019-10-28
    相关资源
    最近更新 更多