动态 VFS 端点
dynamic VFS endpoint
我需要在存储上创建文件夹。文件夹名称是动态的,来自传入请求。我尝试在 属性 '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>
有人知道如何解决这种情况吗?
提前致谢!
您可以使用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>
我需要在存储上创建文件夹。文件夹名称是动态的,来自传入请求。我尝试在 属性 '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>
有人知道如何解决这种情况吗? 提前致谢!
您可以使用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>