我正在使用WSO2 ESB文件连接2读取简单文件。我尝试读取给定目录中的.OUT文件。它读取第一个文件(字母顺序?),但我不知道哪个文件被读取。是否有一个(transport?)属性在读取文件时被填充?使用WSO2 ESB文件连接器读取文件时可以获取文件名2
这是我在代理服务
<fileconnector.read>
<source>file:///D:/temp</source>
<filePattern>.*\.OUT</filePattern>
<contentType>text/plain</contentType>
</fileconnector.read>
<log level="full"/>
代码中,我获得以下响应
INFO - LogMediator To: /services/SampleProxy.SampleProxyHttpSoap12Endpoint, WSAction: urn:mediate, SOAPAction: urn:mediate, MessageID: urn:uuid:f5737693-6a51-4044-9134-95cd61eaeaa4, Direction: request, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><text xmlns="http://ws.apache.org/commons/ns/payload">abc,123
qwe,456
</text></soapenv:Body></soapenv:Envelope>
谢谢,我已经试过了。它没有工作 – Shiv
是的,它似乎与文件inbound/vfs,而不是文件连接器有关。 – Bee
嗯,谢谢。除班级中介以外,是否有任何选择?不幸的是,文件搜索也不适合我,我已经在这里发布 - http://stackoverflow.com/questions/42798837/wso2-esb-file-connector-2-search-returns-empty-response – Shiv