You should only throw SOAPException's from Java class representing a SOAP service. 
SOAPExceptions are translated into SOAP Fault codes and text. You can also incorporate 
your 'UnknownUserException' into a SOAPException.

/Micael E.

-----Original Message-----
From: Vikram Rajan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 10, 2001 11:14 AM
To: '[EMAIL PROTECTED]'
Subject: Exception handling


Doesnt Apache SOAP toolkit handle application-level exceptions?

i.e., if I have a method with the following signature:

public User getUserDetails(String id) throws UnknownUserException

and the UnknownUserException is thrown by the method, shouldn't this
exception be wrapped into a Fault object and sent across to the client? ...
doesnt seem to be happening. All I get is a "null".

Am using Apache SOAP 2.1 with Weblogic. 

any ideas? am i missing something?

- vikram rajan

Reply via email to