WSO2如何在VFS中设置ReplyFileName

时间:2012-05-08 03:10:43

标签: xml wso2 vfs

我使用VFS将文件从txt转换为xml。我的txt文件名是:COS_201205071103_0000000001.txt。 ReplyFileName必须是COS_201205071103_0000000001.XML。我想我需要获取txt文件名并将其更改为xml。但是如何获得txt文件名?

1 个答案:

答案 0 :(得分:2)

在In Sequence中,您可以将文件名设置为这样的属性..

<property name="filename" expression="fn:concat(get-property('transport', 'FILE_NAME'), '.xml')"/>
            <log level="custom">
                <property name="show-name" expression="get-property('filename')"/>
            </log>

然后你可以像这样设置输出文件。

<property name="transport.vfs.ReplyFileName" expression="get-property('filename')" scope="transport"/>