Running faulthandling, Mtom, Building mtom on windows – HP Integrity NonStop J-Series User Manual
Page 192
![background image](/manuals/397993/192/background.png)
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://
BankService -Daccount=13 -Damt=400
The output must include the following:
Account#13 does not exist
•
command prompt> ant run.client -Durl=http://
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://
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 192)
•
“Deploying MTOM on NonStop” (page 193)
•
“Configuring the client for running MTOM” (page 194)
•
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
For example:
192 Axis2/Java Framework