CXF REST Exception Handling

Deployed REST Web Service Using CXF

CXF REST Exception Handling

Note

you can also see CXF Restful Client in order to run this restful service

When you invoke the above client with student name as Tom, you will get the correct response

Output
Response From Server 

{"Student":{"name":"HELLO Tom"}}

When you invoke the above client with student name other than Tom, you will get an ServiceExceptionDetails

Output
Error From Server 

{"ServiceExceptionDetails":[{"faultCode":100,"faultMessage":"Student Name is not correct"}]}

 





Previous 1 2 3 4








3 Responses to "CXF REST Exception Handling"
  1. harry 2012-11-17 08:30:35.0
  1. admin 2012-11-18 08:30:35.0
  1. Joe 2012-11-19 08:30:35.0

Your email address will not be published. Required fields are marked *