问题描述
<?xml version="1.0" encoding="UTF-8"?>
<api context="/sub" name="sub" xmlns="http://ws.apache.org/ns/synapse">
<resource methods="POST">
<inSequence>
<property expression="get-property('SYSTEM_TIME')" name="TIME_START" scope="default" type="LONG"/>
<property expression="get-property('SYSTEM_TIME')" name="TIME_END" scope="default" type="LONG"/>
<log level="full" separator=","/>
<datamapper config="gov:datamapper/Substraction.dmc" inputSchema="gov:datamapper/Substraction_inputSchema.json" inputType="XML" outputSchema="gov:datamapper/Substraction_outputSchema.json" outputType="XML" xsltStyleSheet="gov:datamapper/Substraction_xsltStyleSheet.xml"/>
<log>
<property expression="get-property('RESPONSE_TIME')" name="Response Time in ms: "/>
</log><respond/>
</inSequence>
<outSequence/>
<faultSequence/>
</resource>
</api>
map_S_root_S_root = function(){
var outputroot={};
outputroot = {};
outputroot.RESPONSE = inputroot.TIME_START-inputroot.TIME_END;
return outputroot;
};
1。如何将属性XPath传递给2个输入文件TIME_START-TIME_END,然后将值存储到Response
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)