Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 61434 invoked from network); 9 Feb 2009 08:55:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Feb 2009 08:55:20 -0000 Received: (qmail 43702 invoked by uid 500); 9 Feb 2009 08:55:20 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 43691 invoked by uid 500); 9 Feb 2009 08:55:20 -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 43668 invoked by uid 99); 9 Feb 2009 08:55:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Feb 2009 00:55:20 -0800 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Feb 2009 08:55:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 87EA4234C4AD for ; Mon, 9 Feb 2009 00:54:59 -0800 (PST) Message-ID: <752733270.1234169699555.JavaMail.jira@brutus> Date: Mon, 9 Feb 2009 00:54:59 -0800 (PST) From: "kishore (JIRA)" To: issues@cxf.apache.org Subject: [jira] Created: (CXF-2027) Problem in getting CXF output in particular format MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Problem in getting CXF output in particular format -------------------------------------------------- Key: CXF-2027 URL: https://issues.apache.org/jira/browse/CXF-2027 Project: CXF Issue Type: Bug Components: Configuration, Core, JAX-WS Runtime Environment: Jboss,Spring Framework,CXF Reporter: kishore Priority: Critical Hi , Im having a problem in Output Sources: public class User { @XmlAttribute private int id; @XmlElement(name='Email') private String name; @XmlAttribute private String email; @XmlElemnt(Marks) private Marks marks; } public class Marks { @XmlAttribute private int id; @XmlAttribute private String aggregate; @XmlElemnt(Total) private String totalMarks; } Service: import javax.jws.WebService; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; import org.codehaus.jra.Get; import org.codehaus.jra.HttpResource; @WebService() public interface SampleService { @Get @HttpResource(location="/details") public List getUserDetailsWithMarks(); } ServiceImpl: import java.util.List; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import javax.jws.WebService; import javax.jws.soap.SOAPBinding; import javax.jws.soap.SOAPBinding.ParameterStyle; import javax.jws.soap.SOAPBinding.Style; import javax.jws.soap.SOAPBinding.Use; public class SampleServiceImpl implements SampleService { @Override public List getUserDetailsWithMarks() { User user=new User(); user.setId(1000); user.setName("ONE"); user.setEmail("Sample@one.com"); Marks marks=new Marks(); marks.setAggregate("77%"); marks.setId(999); marks.setTotalMarks("1777"); user.setMarks(marks); } } Configuration: Im Getting output like this ONE 77/100 But i need output like this : ONE 1777 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.