Java Tutorial - Java Scipt : Exceptions

Java Tutorial - Java Scipt :

Exceptions


Exceptions seem to be handled inconsistently. Indeed, the semantics are not very well defined in the SOAP standard. In the structure of a SOAP message, there is a SOAPFault section. This seems to be reserved for exceptions. In Axis, RemoteExceptions are indeed marshaled through the SOAPFault section. However, application-level exceptions—pretty much anything that’s not a RemoteException—are marshaled as <wsdl:exception> elements within the response. Unfortunately, the semantics of an exception still vary from one SOAP implementation to another. In an interoperability scenario, this can cause problems in detailed exception management. On the plus side, the notification of an exception can still be relied on.