Hi
Hello Sergey,
Thank you very much for yr response.
In my methods, I am returning custom objects. These methods throw exception
according to certain validation. we want these exception should be part of
wadl.
So my question is, how can I publish these exception into wadl??
It is not possible in WADL. I've been thinking about it a bit more...Basically, WADL allows for a given <response> to contain a
number of representations, which represent normal non-exceptional responses. Ex, if you have a service method returning Book as
either Atom entry or plain XML then you could have 2 representation of types application/xml and applicatiopn/atom+xml;type=entry.
Some application exceptions will be mapped to response codes only, while others will also contain additional entities. This is what
WADL does not capture at the moment. Perhaps WADL can be extended to allow for multiple representations *and exception
representations* ? may be it's worth suggesting it at the wadl list...
cheers, Sergey
Ashish
Sergey Beryozkin-2 wrote:
Hi
You can not do it in WADL. Application exceptions may be mapped to various
response types so at the moment you can only have a WADL
instance listing possible response/error codes for individual resources
which is not possible to implement in a java-first case. You
can use a CXF JAXRS @Description annotation to have a human-readbale
description of the possible error conditions
cheers, Sergey
Hello Guys,
I want to know.. How to generate fault section in WADL using CXF??
Please help me in this regards..
Thank you very much in advance..
Ashish..
--
View this message in context:
http://old.nabble.com/Regarding-fault-section-in-WADL..-tp27351601p27351601.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
View this message in context:
http://old.nabble.com/Regarding-fault-section-in-WADL..-tp27351601p27370147.html
Sent from the cxf-user mailing list archive at Nabble.com.