Manual

Deploying MTOM on NonStop
To deploy the MTOMSample webservice under Axis2/Java web application, complete the
following steps:
1. Copy the sample-mtom.aar file from the <Axis2
Home>\samples\mtom\build\service directory on Windows system to <NSJSP
deployment directory>/webapps/axis2/WEB-INF/services OSS directory on
your NonStop system.
2. Verify if the MTOMSample is successfully deployed:
If iTP WebServer is already running, the MTOMSample should be listed in http://<IP
Address of the iTP WebServer>:<port#>/servlet_jsp/axis2/services/listServices
If iTP WebServer is not running, start the iTP WebServer using the following steps:
a. Go to <iTP WebServer deployment directory>/conf, using the command:
OSS> cd <iTP WebServer deployment directory>/conf
For example:
OSS> cd /home/sash_usr/webserver/conf
b. Start the iTP WebServer using the command:
OSS> ./start
The MTOMSample should be listed in http://<IP Address of the iTP
WebServer>:<port#>/servlet_jsp/axis2/services/listServices .
Configuring the client for running MTOM
Before running MTOM, modify the MTOM Sample WSDL file, using the following steps:
1. Go to the <Axis2 Home>\samples\mtom\resources directory on your Windows
system.
2. Update the address location under the <soap> tag and <soap12> tag in the
MTOMSample.wsdl file.
<soap>
Change the address location http://localhost:8080/axis2/services/MTOMSample
to http://<IP Address of the iTP Webserver>:<port#>/servlet_jsp/axis2/services/
MTOMSample
<soap12>
Change the address location http://localhost:8080/axis2/services/MTOMSample
to http://<IP Address of the iTP Webserver>:<port#>/servlet_jsp/axis2/services/
MTOMSample
Running MTOM
To run MTOM, the MTOMSample webservice on your NonStop system should be invoked
through a client on your Windows system. To do so, complete the following steps:
1. Go to <Axis2 Home>\samples\mtom, using the command:
command prompt> cd <Axis2 Home>\samples\mtom
For example:
command prompt> cd C:\axis2-1.4.1-bin\samples\mtom
2. Run the client, using the command:
command prompt> ant run.client Dfile <Absolute Windows Path
of the file to be transferred> -Ddest Destination-file-name
For example:
Deploying and Running Axis2/Java Sample Applications on NonStop 187