@Produces.So,I cann't use cxf generate wadl like below:
>
> <resource path="/createInstances">
> <method name="POST">
> <request>
> <representation
> mediaType="application/x-www-form-urlencoded">
>
> </representation>
>
here is what generated by the WADLGenerator test :
<resource path="/form2">
<method name="POST">
<request>
<representation mediaType="application/x-www-form-urlencoded">
<param name="field1" style="query" type="xs:string"/>
<param name="field2" style="query" type="xs:string"/>
</representation>
</request>
<response status="204"/>
</method>
</resource>
the corresponding test method :
@Path("/form2")
@POST
void form2(@FormParam("field1") String f1, @FormParam("field2") String
f2);
cheers, Sergey