When your Java service calls other services, errors or faults that occur during the invocation translate to Java exceptions. There are two categories of exceptions:
Exceptions that map to WSDL faults
These exceptions translate to faults in the service WSDL interface definition. These must be checked exceptions that meet the requirements described in Supported Java Exceptions.
If the Java Service editor preferences allow exceptions to be rethrown, the generated code in the Java service proxy rethrows these exceptions as the original exception type.
Other exceptions
The Java service proxy maps any other exception type to org.apache.WSIFException. If the Java Service editor preferences allow WSIFException to be rethrown, the proxy rethrows the exception to be caught by calling code.
In the default Java Service editor configuration, all exceptions are caught and logged in the generated Java service proxy code. To change this behavior, set the Java Editor Preferences to allow rethrowing of exceptions, then regenerate the service proxy.
Implementing Service-to-Service Calls
Generating Java Service Proxies
Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com