This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

faultDetail element and custom exceptions

 
madhup narain
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.



 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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().
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic