Table of Contents

Search

  1. Preface
  2. Web Service Concepts
  3. Understanding the Web Services Provider
  4. Using the Web Services Hub Console
  5. Batch Web Service Operations
  6. Writing Client Applications
  7. Working with Web Service Sources and Targets
  8. Editing Web Service Sources and Targets
  9. Working with Web Service Mappings
  10. Working with Web Service Workflows
  11. Appendix A: Web Service Sample Client Applications
  12. Appendix B: Configure the Web Browser

Web Services Provider Guide

Web Services Provider Guide

Error Handling in Axis

Error Handling in Axis

You can implement client application error handling in Axis by placing the code in a try block and catching the FaultDetails object. The FaultDetails class is generated as part of the client proxies.
You can use the following code in a try block to catch the FaultDetails object:
try { // Code for steps explained above. } catch(FaultDetails fault) { // Display fault code          System.out.println(“fault code : “ + fault.getFaultCode()); // Display fault string          System.out.println(“fault string : “ + fault.getFaultString()); // Display error code          System.out.println(“error code is : “ + fault.getErrorCode()); // Display extended details          System.out.println(“extended detail is : “ + fault.getExtendedDetails()); }

0 COMMENTS

We’d like to hear from you!