You can take a look at the following Howto: http://cwiki.apache.org/CXF20DOC/defining-contract-first-webservices-with-wsdl-generation-from-java.html
Greetings Christian jian wu schrieb:
Hi, If you are using JAX-WS, you can use "WebFault" annotation with the "MyException", Your Web Service Definition would be sth like: ============================================ // MyService.java @WebService public interface MyService { @WebMethod MyResponse MyMethod( ...) throws MyException; } // MyException.java @WebFault( ... ) public class MyException extends Exception { } ============================================ Hope this would be helpful. Jian On Fri, Sep 19, 2008 at 9:30 PM, FireElement <[EMAIL PROTECTED]> wrote:I define a web service using cxf, and my interface could throw MyException which is inherited Excetpion. But when the exception is throw, from the client side, I could only catch a SOAPFaultExceptioin but not MyException. Who can give me a example about how to throw out a user defined Exception. Thanks a lot! -- View this message in context: http://www.nabble.com/How-to-throw-a-user-defiend-exception-from-a-service-interface-tp19582586p19582586.html Sent from the cxf-user mailing list archive at Nabble.com.
-- Christian Schneider --- http://www.liquid-reality.de
