wood burning stoves 2.0*
The moose likes Web Services and the fly likes faultDetail element and custom exceptions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "faultDetail element and custom exceptions" Watch "faultDetail element and custom exceptions" New topic
Author

faultDetail element and custom exceptions

madhup narain
Ranch Hand

Joined: Dec 14, 2004
Posts: 148
An exception in my webservice is coming under the faultDetail element.
Should the custom exception come under this element ?
Is there any way i can retrieve this exception.




Money for nothing and Java for Free
SCJP, SCWCD
Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 576

Hi Madhup,
All your business exceptions thrown from web service would come as SOAP Faults. SOAPFault has got many methods to retrieve it's fields. For example, to get fault detail, use getDetail().


Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: faultDetail element and custom exceptions
 
Similar Threads
Best practice for overriding Exception.toString()
Custom Exception handling in Web services
Problem with Custom Exceptions in my Axis webservice
Problem with methods returning an attachment
UPS XML Tracking problem