Can anyone speak to this issue? I have not yet found a solution.

Regards,
Kaleb


|------------>
| From:      |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |Kaleb Walton/Southfield/IBM                                                  
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To:        |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |[email protected]                                                
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date:      |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |09/18/2007 03:23 PM                                                          
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject:   |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |Specifying an exception as a WebFault using Simple Server (simple:server)    
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|




Exceptions that I throw are not rendered as Fault's to web service clients
even after specifying WebFault annotations on the Exception class. I can
see the ServiceException in the WSDL but the methods themselves are just
ignoring the fact that I'm throwing exceptions. Can anyone point me in the
right direction?

I have an exception defined as follows:

@WebFault(name="ServiceFault")
public class ServiceException extends Exception {
  // Custom Exception Implementation
}


I'm using Spring to configure a simple:server:

<simple:server id="myServer" serviceClass="a.b.c.MyService"
serviceBean="#myService" address="/MyService"/>


I'm throwing ServiceExceptions on each method in MyService:

class MyService {
  public ServiceResult find(ServiceArg arg) throws ServiceException {
    // do stuff
  }
}

Regards,
Kaleb

Reply via email to