[ 
https://issues.apache.org/jira/browse/CXF-5624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vjacheslav Borisov updated CXF-5624:
------------------------------------

    Priority: Minor  (was: Major)

> Wadl-first to generate method with @QueryParam("") annotation
> -------------------------------------------------------------
>
>                 Key: CXF-5624
>                 URL: https://issues.apache.org/jira/browse/CXF-5624
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAX-RS
>    Affects Versions: 3.0.0-milestone2
>            Reporter: Vjacheslav Borisov
>            Priority: Minor
>              Labels: development, wadl-first
>
> Currently it is not possible to generate method with @QueryParam("") 
> annotation using cxf-wadl2java-plugin 
> If I write
>                     <request>
>                         <param name="req" type="doc:DocumentListRequest" 
> style="query"/>
>                     </request>
> Then I get
> DocumentListRequest list(@QueryParam("req") DocumentListRequest req);
> ("req" goes to both @QueryParam and param name)
> When I write WADL without  name="req" or with empty name=""
>  <request>
>                         <param name="" type="doc:DocumentListRequest" 
> style="query"/>
>                     </request>
> I got syntax error (no @QueryParam  annotation and no param name)
> DocumentListRequest list( DocumentListRequest );
> Could be last example (with empty name attribute or even without it) used to 
> generate something like
> DocumentListRequest list(@QueryParam("") DocumentListRequest 
> ocumentListRequest);
> example wadl  and maven project
> https://github.com/bystrobank/testapachecxf/blob/master/src/main/webapp/schemas/testappjava/testappjava.wadl



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to