cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chengy <chy108.2...@yahoo.com.cn>
Subject Re: A WADL Representation bug?
Date Tue, 27 Jul 2010 12:12:05 GMT

Hello, dear Sergey,

what do you think of my code?
--------------------------------------------------------------------------------------
@POST 
@Consumes(MediaType.APPLICATION_FORM_URLENCODED) 
@Produces(MediaType.TEXT_HTML) 
@Path("/createInstances") 
public int createInstances(@FormParam("workflowDefUUID") String
workflowDefUUID, @FormParam("createUserId") String createUserId,
@FormParam("participantId") String participantId, @FormParam("title") String
title,@FormParam("boDatas") String boDatas) {return 0;}; 
--------------------------------------------------------------------------------------

if don't asign a @Produces,cxf will set MediaType.APPLICATION_OCTET_STREAM
as a int type's mime type.
-- 
View this message in context: http://cxf.547215.n5.nabble.com/Re-A-WADL-Representation-bug-tp1842811p2255734.html
Sent from the cxf-dev mailing list archive at Nabble.com.

Mime
View raw message