Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 86013 invoked from network); 11 Jan 2011 22:08:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Jan 2011 22:08:10 -0000 Received: (qmail 43237 invoked by uid 500); 11 Jan 2011 22:08:10 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 43009 invoked by uid 500); 11 Jan 2011 22:08:09 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 42953 invoked by uid 99); 11 Jan 2011 22:08:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jan 2011 22:08:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jan 2011 22:08:06 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0BM7k98014626 for ; Tue, 11 Jan 2011 22:07:46 GMT Message-ID: <878598.296931294783666698.JavaMail.jira@thor> Date: Tue, 11 Jan 2011 17:07:46 -0500 (EST) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Subject: [jira] Created: (CXF-3242) Improve the way primitive request or response types are shown in WADL MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Improve the way primitive request or response types are shown in WADL --------------------------------------------------------------------- Key: CXF-3242 URL: https://issues.apache.org/jira/browse/CXF-3242 Project: CXF Issue Type: Improvement Components: JAX-RS Affects Versions: 2.3.1 Reporter: Sergey Beryozkin Assignee: Sergey Beryozkin Fix For: 2.3.2, 2.4 Gilgal Jones : Sergey, Here is the response I got on users@wadl.dev.java.net from Marc Hadley: I assume you are trying to describe a representation that contains a Boolean - right ? I think a better way to represent this would as follows: It might be worth considering switching from text/plain to something with a bit more structure. E.g. you could use application/x-www-form-urlencoded: instead of a body of "true" you'd send back "result=true". That little bit of extra structure will allow you to add additional information in the future with less chance of breaking (well written) clients. In that case you'd use style="query" in the param element. Personally I'd use JSON or XML but I understand the urge to keep things simple. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.