Hi On Thu, Aug 26, 2010 at 12:39 PM, tapdur <[email protected]> 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. >
