WSO2 ESB is an open source Enterprise Service Bus that enables interoperability among various heterogeneous systems and business applications.
Read File Mediator is an helper mediator to read XML file content into the current payload either directly to SOAP body element or to defined target element.
You have two options:
a) Add as a Maven/Gradle/Ivy dependency to your project. Get the dependency snippet from here.
b) Download it manually from here.
Copy the wso2-esb-read-file-mediator-x.y.jar
to $WSO2_ESB_HOME/repository/components/dropins/
.
Mediator can be used as follows:
<readFile (fileName="/path/to/file.xml" | property="fileNamePropertyName") [attachXpath="expression"] />
<readFile fileName="Example.xml" />
<readFile property="fileNameProperty" />
<readFile fileName="Example.xml" attachXpath="//target" />
<readFile property="XML_FILE" attachXpath="//target" />
- Oracle Java 6 or above
- WSO2 ESB
- Wrapper Mediator has been tested with WSO2 ESB versions 4.8.1, 4.9.0 & 5.0.0
- Java 6 + Maven 3.0.X
Copyright © 2016 Mystes Oy. Licensed under the Apache 2.0 License.