This documentation is for WSO2 Enterprise Integrator version 6.5.0 . View documentation for the latest release in the 6.x.x family and the latest release in the 7.x.x family.

All docs This doc

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Objective: Demonstrate simple database write operations with the DBReport mediator.


Code Block
<definitions xmlns="">

    <sequence name="main">
                    <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>

            <log level="custom">
                <property name="text"
                          value="** Reporting to the Database **"/>
            <dbreport xmlns="">
                    <sql>update company set price=? where name =?</sql>
                    <parameter expression="//m0:return/m1:last/child::text()"
                               xmlns:m0="http://services.samples" xmlns:m1="http://services.samples/xsd" type="DOUBLE"/>
                    <parameter expression="//m0:return/m1:symbol/child::text()"
                               xmlns:m0="http://services.samples" xmlns:m1="http://services.samples/xsd" type="VARCHAR"/>



  • Start Create the Synapse configuration numbered 361: i.e. wso2esb-samples -sn 361above configuration and deploy it in the ESB profile.
  • Start the Axis2 server and deploy the SimpleStockQuoteService if not already done