aspose file tools
The moose likes Web Services and the fly likes faultDetail element and custom exceptions Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply 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: 542

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 (SCJP, SCDJWS and SCWCD)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: faultDetail element and custom exceptions
 
Similar Threads
UPS XML Tracking problem
Custom Exception handling in Web services
Best practice for overriding Exception.toString()
Problem with methods returning an attachment
Problem with Custom Exceptions in my Axis webservice