Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
WSO2:使用属性保存当前消息_Wso2 - Fatal编程技术网

WSO2:使用属性保存当前消息

WSO2:使用属性保存当前消息,wso2,Wso2,我是一个WSO2新手,如果我的答案看起来很愚蠢,请提前道歉 在一个序列中,我有以下代码 <property name="InitialMessage" expression="$body" scope="operation" type="STRING"/> <log level="full"> <property name="INITIAL MESSAGE" expression="get-property('InitialMessage')"/> &

我是一个WSO2新手,如果我的答案看起来很愚蠢,请提前道歉

在一个序列中,我有以下代码

<property name="InitialMessage" expression="$body" scope="operation" type="STRING"/>
<log level="full">
    <property name="INITIAL MESSAGE" expression="get-property('InitialMessage')"/>
</log>
我做错了什么

提前非常感谢你


塞萨尔

请不要认为你的问题是愚蠢的:。我认为您在属性中介中定义的范围值无效。作用域必须为默认值。这意味着您不想配置它,请删除它进行试用。您可以从WSO2 ESB中找到有关使用$body的详细信息

TID: [0] [ESB] [2014-07-04 11:27:46,569]  INFO {org.apache.synapse.mediators.builtin.LogMediator} -  To: http://www.w3.org/2005/08/addressing/anonymous, WSAction: process, SOAPAction: process, MessageID: urn:uuid:0D6752DAEC5AA438C92484199554844771301894479, Direction: request, **INITIAL MESSAGE = null**,..............