Unfortunately, the current code does not allow you to set those things.  They are 
handled in the Fault class instead of SOAPException.  You may be able to write a Fault 
handler that would do what you desire.  The DOMFaultListener is one such handler that 
comes with Apache SOAP.  You would have to do some trick, such as

1. Implement an addFaultInfo(String id, String detail, String actor) class method in 
your handler that would put the detail and actor info in a Hashtable with id as the 
key.  You would call this from your service.

2. Embed the id in the message of your SOAPException.

3. Parse out the id from the message in the fault() method of your handler, look up 
the info in your Hashtable, change values in the Fault to what you desire, then remove 
the entry from your Hashtable.

This is not pretty, but I think it would work if you really need this info in your 
Faults.

Scott Nichol

Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message ----- 
From: "Hans Jakob Skovenborg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 01, 2003 10:47 AM
Subject: SOAPException


> Hi Everybody
> How do I throw an SOAPException containing actor and/or details
> Regards
> Jakob 
>

Reply via email to