WSO2 ESB 文件连接器 2 搜索返回空响应 [英] WSO2 ESB File connector 2 search returns empty response

查看:14
本文介绍了WSO2 ESB 文件连接器 2 搜索返回空响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 WSO2 ESB (v 5.0.0) 提供的文件连接器 2 在给定目录中搜​​索文件.isFileExist 函数返回 true,但是当我搜索同一个文件时,它返回空响应.这是一个错误还是我错过了什么?

I use file connector 2 provided by WSO2 ESB (v 5.0.0) to search for a file in the given directory. isFileExist function returns true but when I search for the same file, it returns empty response. Is this a bug or am I missing something?

这是我的代码

<fileconnector.isFileExist>
 <source>file:///home/test/abc.OUT</source>
</fileconnector.isFileExist>
<log level="full"/>
<fileconnector.search>
 <source>file:///home/test/</source>
 <filePattern>abc.OUT</filePattern>
 <recursiveSearch>false</recursiveSearch>
</fileconnector.search>
<log level="full"/>

这是我得到的回应

To: , WSAction: mediate, SOAPAction: mediate, MessageID: urn:uuid:2391811e-5c83-4b98-a801-a60fe55b6fd0, Direction: request, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><fileExist>true</fileExist></soapenv:Body></soapenv:Envelope> {org.apache.synapse.mediators.builtin.LogMediator}
To: , WSAction: mediate, SOAPAction: mediate, MessageID: urn:uuid:2391811e-5c83-4b98-a801-a60fe55b6fd0, Direction: request, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:result xmlns:ns="http://org.wso2.esbconnectors.FileConnector"/></soapenv:Body></soapenv:Envelope> {org.apache.synapse.mediators.builtin.LogMediator}

当我在搜索中使用 .*.txt 文件模式时,我得到了相同的结果.

I get the same result when I use .*.txt file pattern in search too.

请帮助,TIA

推荐答案

可以在搜索操作中尝试abc.out"作为文件模式吗?

Can you try "abc.out" for file pattern in the search operation?

<filePattern>abc.out</filePattern>

这篇关于WSO2 ESB 文件连接器 2 搜索返回空响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆