See samples\faults in the Axis 1.2.1 distribution for some examples, and look through the archive (the last week or so) for this mailing list for other details of creating custom exceptions.
Another link you may find useful is http://www.gridlab.org/WorkPackages/wp-5/guide/faults.html Cheers, Chris. -----Original Message----- From: Jarmo Doc [mailto:[EMAIL PROTECTED] Sent: 06 September 2005 22:03 To: [email protected] Subject: Throwing custom exceptions I can't locate any simple documentation or examples about how to generate custom exceptions (e.g. if I want user-defined content in the exception e.g. <country>France</country>) or how to get the exception description into my WSDL using java2wsdl. I'm surprised that the samples that ship with Axis 1.2.1 have zero examples (whcih may be an indication that I'm looking for the wrong thing, of course). So, to get me started in the right direction ... am I correct in thinking that my web service should throw AxisFault (and play about with 'details' or 'subcode'?) rather than Exception or SOAPException or SOAPFaultException? _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ CONFIDENTIALITY & PRIVILEGE NOTICE This e-mail is confidential to its intended recipient. It may also be privileged. Neither the confidentiality nor any privilege attaching to this e-mail is waived lost or destroyed by reason that it has been mistakenly transmitted to a person or entity other than its intended recipient. If you are not the intended recipient please notify us immediately by telephone or fax at the numbers provided above or e-mail by Reply To Author and return the printed e-mail to us by post at our expense. We believe, but do not warrant, that this e-mail and any attachments are virus-free, but you should check. We may monitor traffic data of both business and personal e-mails. We are not liable for any opinions expressed by the sender where this is a non-business e-mail. If you do not receive all the message, or if you have difficulty with the transmission, please telephone us immediately.
