Return-Path: Delivered-To: apmail-cxf-users-archive@www.apache.org Received: (qmail 5858 invoked from network); 15 Jan 2010 16:21:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Jan 2010 16:21:47 -0000 Received: (qmail 21688 invoked by uid 500); 15 Jan 2010 16:21:46 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 21605 invoked by uid 500); 15 Jan 2010 16:21:46 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 21595 invoked by uid 99); 15 Jan 2010 16:21:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jan 2010 16:21:46 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of piebetz@gmail.com designates 209.85.222.192 as permitted sender) Received: from [209.85.222.192] (HELO mail-pz0-f192.google.com) (209.85.222.192) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jan 2010 16:21:38 +0000 Received: by pzk30 with SMTP id 30so679141pzk.24 for ; Fri, 15 Jan 2010 08:21:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=kop4jZ86BMazaEGfKUUXJvWrE5n9bqITt55BWLpCsiI=; b=J/xObImHXPvsR6h4GJhDAzDgg/cvlTATcz5rhiiqwckbhD9t3dSF1H29L+AfLaeqgy Rs4r7gUWvrLxO+7WBdsJUOU6zuYcV87c2qahJpKR3xlpW8OCGDLxwpdfb98ORIUEp6ch kEWFodfG/m8fzDNXND6lwU4jap+aMOi9xSiqI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=eHIIT/h+VktCSfvtIeMfAXuaVEK0rk7YjI51CI/nKuia2g7Qmzd47xIFCfEzWGQUB8 kkEigGvJtNp+HHkV1gMhIej7y8j2eh6a2fmozrjSl+0jxQ3tIA9YaJ+nvYHRZllVTgOP D0ndaqqMU6E9KUmk+faI+ThjyOVEWbkAEva4w= MIME-Version: 1.0 Received: by 10.141.22.20 with SMTP id z20mr1890666rvi.23.1263572477094; Fri, 15 Jan 2010 08:21:17 -0800 (PST) From: piebetz@gmail.com Date: Fri, 15 Jan 2010 17:20:57 +0100 Message-ID: Subject: WSDL2JAVA, generating the java classes for elements with default values To: users@cxf.apache.org Content-Type: multipart/alternative; boundary=000e0cd1eb0aa52c53047d3664b1 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd1eb0aa52c53047d3664b1 Content-Type: text/plain; charset=UTF-8 Hi, is it possible with CXF 2.1.2 to generate the elements which are sended by/to the WSserver, with their default values declared as they are i nthe WSDL ? like I've the element : and I would like wsdl2java to generate something like : public class Personinfo{ @XmlElement(name = "param") protected String param = "test"; public String getParam() { return param ; } public void setParam(String value) { this.param = value; } } is there a way to do that ? the argument "-defaultvalues" do not do that . --000e0cd1eb0aa52c53047d3664b1--