Hi

I can't think of any reason why ListRequest is recognized on the output but not on the input. Perhaps @Consumes("application/xml") is not enabled at the method, only @Produces is ?

If not then please create a JIRA issue and attach either a test project or a list of sample Java files that will help me reproduce the issue

Cheers, Sergey

On 30/04/14 00:30, godfather_599 wrote:
Hi,
I saw in a post that a complex element can be represented in  the request
tag , this way:

@POST
        @Path("/index")
        @ElementClass(response = ListResponse.class , request = 
ListRequest.class)      
        public Response getPreferenceTypeList(
                        ListRequest listRequest,
                        @PathParam("format") @DefaultValue("json") String 
format);

However, my WADL is not generating this complex type in the request section:

<request>
<representation mediaType="application/octet-stream"/>
</request>

Actually, it should be like this:

<request>
<representation mediaType="application/xml" element="prefix1:ListRequest"/>
</request>

The problem here is that, the WADL generator never considers the request
element in the @ElementClass annotation. However, the response looks good:

<response>
<representation mediaType="application/json"/>
<representation mediaType="application/xml" element="prefix1:
ListResponse"/>
</response>

I am using cxf V 2.7.10.. any help appreciated..



--
View this message in context: 
http://cxf.547215.n5.nabble.com/Unable-to-represent-complex-type-in-the-Request-tag-of-WADL-tp5743441.html
Sent from the cxf-user mailing list archive at Nabble.com.


Reply via email to