WSO2 ESB文件连接器2搜索返回空响应



i使用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

您可以在搜索操作中尝试" abc.out"?

<filePattern>abc.out</filePattern>

最新更新