Hello, it doesnt explain java to wsdl way. could anyone please give me a sample using annotations( @WebFault, @Xml) or any sample? I need to define everything in java and expose wsdl file on runtime using CXF.
I found some samples but I could not make it run in CXF @WebFault(name = "AddNumbersException", targetNamespace = "http://server.fromjava/jaxws") public class AddNumbersException_Exception extends Exception { private AddNumbersException faultInfo; public AddNumbersException_Exception(String message, AddNumbersException faultInfo) { super(message); this.faultInfo = faultInfo; } public AddNumbersException_Exception(String message, AddNumbersException faultInfo, Throwable cause) { super(message, cause); this.faultInfo = faultInfo; } public AddNumbersException getFaultInfo() { return faultInfo; } } thanks, Mehmet ----- Original Message ---- From: Glen Mazza <[EMAIL PROTECTED]> To: cxf-user@incubator.apache.org Sent: Monday, March 24, 2008 7:47:07 PM Subject: Re: Nested exceptions Yes, look at "catch (CorrelationIdNotFoundFault e) {...}" in Step #10 of [1] below. HTH, Glen [1] http://www.jroller.com/gmazza/date/20080308 Am Montag, den 24.03.2008, 08:34 -0700 schrieb Mehmet Imga: > Hello, > > is there a way to throw nested exceptions in webservices? > > for example I would like to throw following exception in server site and get > more info about nested exception in client site. > > throw new WSException("outer exception message", new SecurityException("inner > exception message", null)); > > Thanks, > Mehmet > > > __________________________________________________________________ > Be smarter than spam. See how smart SpamGuard is at giving junk email the > boot with the All-new Yahoo! Mail. Click on Options in Mail and switch to > New Mail today or register for free at http://mail.yahoo.ca __________________________________________________________________ Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail. Click on Options in Mail and switch to New Mail today or register for free at http://mail.yahoo.ca