【问题标题】:dynamic VFS endpoint动态 VFS 端点
【发布时间】:2017-04-13 09:14:05
【问题描述】:

我需要在存储上创建文件夹。文件夹名称是动态的,来自传入的请求。我尝试在属性“transport.vfs.ReplyFileName”中使用串联完整路径但没有成功,但仍然在地址端点中使用 uri 属性:

<property description="concat path and DestinationFolder" expression="fn:concat(get-property('path'),get-property('DFolder'))" name="transport.vfs.ReplyFileName" scope="transport" type="STRING"/>
            <property description="OUT_ONLY=true" name="OUT_ONLY" scope="default" type="STRING" value="true"/> 
 <endpoint>
    <address uri="vfs:file://D:\\temp_WSO2\\Downloads\\">
    </address>
 </endpoint>

有人知道如何解决这种情况吗? 提前致谢!

【问题讨论】:

    标签: dynamic wso2 endpoint vfs


    【解决方案1】:

    您可以使用 To header 属性设置动态路径。然后您可以包含一个匿名端点。

    <header name="To" expression="fn:concat(get-property('path'),get-property('DFolder'))"/>
    <property description="OUT_ONLY=true" name="OUT_ONLY" scope="default" type="STRING" value="true"/> 
    <send>
        <endpoint>
            <default/>
        </endpoint>
    </send>
    

    你可以看到examples on the WSO2 documentation

    【讨论】:

    • 感谢您的支持!
    猜你喜欢
    • 2016-10-16
    • 2021-11-06
    • 2011-11-13
    • 2013-07-05
    • 2012-02-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多