You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by tapdur <ta...@gmail.com> on 2010/08/26 13:39:33 UTC

generated wadl body type

Hi,

with a rest request with a body , how to specify the body type class in a
generated wadl ? via annotation ?

per ex 

http://.../login
<account>
    <lusername></username>
    <passw></password
</account>


witch cxf annoation will i specify the Account class of the body request in
the generated wadl ?

regards
Bruno
-- 
View this message in context: http://cxf.547215.n5.nabble.com/generated-wadl-body-type-tp2701613p2701613.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: generated wadl body type

Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi

On Thu, Aug 26, 2010 at 12:39 PM, tapdur <ta...@gmail.com> wrote:

>
> Hi,
>
> with a rest request with a body , how to specify the body type class in a
> generated wadl ? via annotation ?
>
> per ex
>
> http://.../login
> <account>
>    <lusername></username>
>    <passw></password
> </account>
>
>
> witch cxf annoation will i specify the Account class of the body request in
> the generated wadl ?
>
>
WADL should have a representation element linking to a corresponding schema
element. This should give enough info to the code generator which is what
CodeGeneratorProvider does. If 'account' is not namespace qualified then no
link will exist.

The only thing you can tell WADLGenerator to do is to configure it
explicitly as a jaxrs:provider and set its 'addResourceAndMethodIds'
property to true. This will ensure WADL resources (those representing root
resources, subresources and individual methods) will have ids with class or
method names - again - this is used by the code generator

cheers, Sergey


> regards
> Bruno
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/generated-wadl-body-type-tp2701613p2701613.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>