APIM中介序列通过代理传递

问题描述 投票:1回答:1

我正在与WSO2 APIM管理器]一起工作,处于隔离的网络环境中,我需要访问此网络区域的端点异地:说https://my.endpoint。幸运的是,有一个代理(例如http://the.localproxy:8080)。通常,在卷曲中,我可以成功完成此操作

curl -X POST https://my.endpoint/datahub/1.0.1/deliveryform_list --proxy http://the.localproxy:8080 -H "Content-Type: application/json" -d '{"company_code ": "1040", "offset": "0", "limit": "20", "date_from": "1574469733", "date_to": "1574772672", "search": "","refused" : "0","delivered" : "1","impossible_drain" : "0"}' 

[当在WSO2 APIM中执行相同操作时,我想知道是否可以在调解顺序

中而不是在全局中添加此代理配置(在axis.xml中,我会说)。像这样的东西(纯粹是虚构的)会很棒:
<inSequence>
   <property expression="get-property('axis2','REST_URL_POSTFIX')" name="resource" scope="default" type="STRING"/>
   <send>
      <endpoint name="MyEndpoint">
         <http method="post" uri="https://my.endpoint/datahub/1.0.1/deliveryform_list"/ proxy="http://the.localproxy:8080">
      </endpoint>
   </send>
</inSequence>

在WSO2-ESB source中似乎可能,但是我不确定APIM

我正在隔离的网络环境中与WSO2 APIM管理器一起使用,我需要访问此网络区域的端点异地:说https://my.endpoint。幸运的是,有一个代理(例如http:// ...

proxy wso2 wso2-am
1个回答
0
投票

配置代理的唯一方法是全局。您提到的ESB链接讨论了ESB中的代理服务,该服务不同于代理服务器。

© www.soinside.com 2019 - 2024. All rights reserved.