【发布时间】:2020-02-25 16:07:10
【问题描述】:
我正在处理一个必须在 APIM 2.6.0 中创建序列的场景。要创建序列文件,我使用的是 WSO2 EI 6.4.0
是否可以使用有效负载调解器创建它。目前,我正在使用数据映射器调解器,不知何故我也实现了,但正在考虑是否还有其他方法。
这是我尝试在 EI 中创建的序列文件
<sequence xmlns="http://ws.apache.org/ns/synapse" name="Dynamic-Sequence_throughAPI-EICAPI">
<property xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"
xmlns:ns3="http://org.apache.synapse/xsd"
name="inputmessage"
expression="get-property('registry', 'gov:/messagefile')"
scope="default"
type="STRING"/>
<property name="messageType"
value="application/json"
scope="axis2"
type="STRING"/>
<property name="ContentType"
value="application/json"
scope="axis2"
type="STRING"/>
<call blocking="true">
<endpoint name="ctctokenURL">
<http method="POST"
uri-template="https://example.com/auth"/>
</endpoint>
</call>
<property xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"
xmlns:ns3="http://org.apache.synapse/xsd"
name="REST_URL_POSTFIX"
expression="get-property('resource')"
scope="axis2"
type="STRING"/>
<property name="POST_TO_URI" scope="axis2" value="true"/>
</sequence>
【问题讨论】:
标签: wso2 wso2esb wso2-am wso2ei