Hi
On 07/12/11 00:42, Steve Karlovic wrote:
Hello,
How can I have the WADL generator produce and describe which endpoints
throw exceptions? Also, I would like definition of the exception
represented in the same WADL where the response and request objects can be
found if possible.
The older versions of WADL did have a 'fault' element apparently,
something I can see in the old Rackspace WADL, but 'fault' is gone now
and one can list different HTTP error statuses (most of them are not
expected to get the (error) responses accompany them).
Say you have a case where a successful query returns some XML but you
prefer a query with no matching results to return some XML describing
why it happened, with 200 OK, instead of an empty 404. I think in this
case a schema element needs to have a complex choice content.
If I want to have the WADL generator describe query parameters accepted
resource method, would I need to have these parameters injected using
@QueryParam("someParameter")? If a resource method has a lot of query
parameters is there a another way than having them all in the signature and
still have query parameters be described in the WADL?
Not sure if this has been worked on at all in recent releases. I am using
2.2.12 still.
CXF supports query beans:
http://cxf.apache.org/docs/jax-rs-basics.html#JAX-RSBasics-DealingwithParameters
with QueryParam("") extensions, such beans can capture many parameters
and will be described in the generated WADL
Cheers, Sergey
Any help which can be provided is appreciated.
Thanks,
Steve
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com