Handling errors on the client
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
To understand how to handle SOAP fault messages returned by the WSA, first note that the
<FaultDetail> element is described in the interface Java class,
servicehost/FaultDetail.java. For example:
|
Place a try...catch block around any code that accesses the Web server and
catch the AxisFault exception.
This is an example of Axis client code to catch a SOAP fault (an AxisFault
exception):
|
CAUTION: In any catch block where you exit the program, you must release all Web service objects you created in the program.