User Manual
Running FaultHandling
To run FaultHandling, the BankService webservice on your NonStop system must be invoked through
a client on your Windows system. To do so, perform the following steps:
1. Go to <Axis2 Home>\samples\faulthandling, using the command:
command prompt> cd <Axis2 Home>\samples\faulthandling
For example:
cd C:\axis2-1.5.2-bin\samples\faulthanding
2. You can use the following sample runs to check if BankService is successfully invoked.
• command prompt> ant run.client -Durl=http://<IP Address
of the iTP WebServer>:<port#>/<servlet directory>/axis2/services/
BankService -Daccount=13 -Damt=400
The output must include the following:
Account#13 does not exist
• command prompt> ant run.client -Durl=http://<IP Address
of the iTP WebServer>:<port#>/<servlet directory>/axis2/services/
BankService -Daccount=88 -Damt=1200
The output must include the following:
Account#88 has balance of 1000. It cannot support withdrawal of 1200
• command prompt> ant run.client -Durl=http://<IP Address
of the iTP WebServer>:<port#>/<servlet directory>/axis2/services/
BankService -Daccount=88 -Damt=400
The output must include the following:
Balance = 600
FaultHandling thus displays the following:
• Validity of the specified account number.
• Validity of the withdrawal balance.
• Balance after withdrawal
MTOM
MTOM demonstrates the capabilities and power of MTOM support of Axis2/Java. When this
application is run, the MTOMSample webservice is invoked. In this sample, a user can send a file
to the MTOMSample service.
The intended users of this application are those who want to send binary attachments to web
services.
This section describes the following steps for MTOM:
• “Building MTOM on Windows” (page 303)
• “Deploying MTOM on NonStop” (page 304)
• “Configuring the client for running MTOM” (page 305)
• “Running MTOM” (page 305)
Building MTOM on Windows
To build MTOM on a Windows system, complete the following steps:
1. Go to <Axis2 Home>\samples\mtom using the command:
command prompt> cd <Axis2 Home>\samples\mtom
For example:
Deploying and Running Axis2/Java Sample Applications on NonStop 303