【问题标题】:WSO2 calling a sequence from another oneWSO2 从另一个调用序列
【发布时间】:2018-12-28 11:20:20
【问题描述】:

当http返回码为401时,我想在另一个序列中调用一个序列

我试图以这种方式处理,但我无法呼叫其他人。

<filter regex=".*401" source="get-property('axis2', 'HTTP_SC')" xmlns:ns="http://org.apache.synapse/xsd">
    <then>
        <call-template target="conf:sequences/otherSequence.xml"></call-template>
    </then>
</filter>

WSO2 版本 6.4.0

感谢您的任何想法!

【问题讨论】:

    标签: wso2 sequence wso2ei


    【解决方案1】:
    <sequence key="conf:sequences/bsi.otherSequence.xml"></sequence>
    

    【讨论】:

    • 我可以在当前项目中完全调用另一个项目的序列吗?我有一个用例,其中我将我的单体项目划分为多个较小的项目。作为其中的一部分,我想将所有常见的共享序列放在一个项目中,该项目将被导入到所有其他项目中。
    • 您可以将所有常见的序列文件部署到&lt;APIM_HOME&gt;/repository/deployment/server/synapse-configs/default/sequences/ 目录,并参考上面提到的API特定序列中的那些。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多