You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by gdprao <gd...@yahoo.com> on 2007/12/31 20:23:48 UTC

Exception handling in Rest style web service

I am trying CXF restful_http_binding example. If I try the URL from browser, 
http://localhost:8080/xml/customers/123 I am getting the 123 customer XML
data.
But if I try to fetch the customer data which does not exists, like
http://localhost:8080/xml/customers/456, I am expecting
CustomerNotFoundFault to be thrown with error XML matching with
CustomerNotFoundDetails object data, which is not happening.  Could someone
explain as to how to throw the faults in rest style web service?  Thanks in
advance.
-- 
View this message in context: http://www.nabble.com/Exception-handling-in-Rest-style-web-service-tp14561209p14561209.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Exception handling in Rest style web service

Posted by Gopal Patwa <go...@gmail.com>.
Does anyone know how to throw and handle exception in REST style webservice?,
I have used SOAP Xfire webservice.


gdprao wrote:
> 
> I am trying CXF restful_http_binding example. If I try the URL from
> browser, 
> http://localhost:8080/xml/customers/123 I am getting the 123 customer XML
> data.
> But if I try to fetch the customer data which does not exists, like
> http://localhost:8080/xml/customers/456, I am expecting
> CustomerNotFoundFault to be thrown with error XML matching with
> CustomerNotFoundDetails object data, which is not happening.  Could
> someone explain as to how to throw the faults in rest style web service? 
> Thanks in advance.
> 

-- 
View this message in context: http://www.nabble.com/Exception-handling-in-Rest-style-web-service-tp14561209p17030388.html
Sent from the cxf-user mailing list archive at Nabble.com.