Versions Compared

Key

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

This sample demonstrates the capabilities of Message Transmission Optimization Mechanism (MTOM). An MTOM Web Service accepts a fileName and a DataHandler. The DataHandler contains the binary content that is eventually saved to a temporary location in a given fileName.

...

The MTOM sample is located in <AS<CARBON_HOME>\Samples\MTOM directory.

...

The generated service (MTOMSample.aar) gets copied to the <AS<CARBON_HOME>/repository/deployment/server/axis2services directory automatically.  

Running the sample

  1. Start the WSO2 Application Server by executing one of the following commands, where <PRODUCT<CARBON_HOME> is the directory where you installed the product distribution:

    OSCommand
    On Windows
    <PRODUCT<CARBON_HOME>\bin\wso2server.bat --run
    On Linux/Solaris
    sh <PRODUCT<CARBON_HOME>/bin/wso2server.sh
  2. Execute one of the following commands with arguments to run the client:

    OSCommand
    On Windows
    run-client.bat
    On Linux/Solaris
    sh run-client.sh

...