Ok got a bit further - this was in the debug logs:
org.apache.cxf.interceptor.Fault: Marshalling Error: a.b.c.ServiceException
is not known to this context
At least that takes me one step further - if anyone has a quick answer I'd
appreciate it. I'll post my solution when it's found.
Regards,
Kaleb
|------------>
| From: |
|------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|Kaleb Walton/Southfield/[EMAIL PROTECTED]
|
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To: |
|------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|[email protected]
|
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date: |
|------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|09/18/2007 03:24 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