cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: A WADL Representation bug?
Date Mon, 26 Jul 2010 17:31:01 GMT
@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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message