我使用WSO2 ESB(v 5.0.0)提供的文件连接器2来搜索给定目录中的文件。 isFileExist
函数返回true,但是当我搜索同一个文件时,它返回空响应。这是一个错误还是我错过了什么?
这是我的代码
<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
文件模式时,我得到相同的结果。
请帮助,TIA
答案 0 :(得分:1)
您可以在搜索操作中尝试“abc.out”查找文件模式吗?
Table1.entity_type = 'SpecialCompany'