Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 22147 invoked from network); 18 Feb 2009 20:06:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Feb 2009 20:06:27 -0000 Received: (qmail 16095 invoked by uid 500); 18 Feb 2009 20:06:24 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 16082 invoked by uid 500); 18 Feb 2009 20:06:24 -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 16025 invoked by uid 99); 18 Feb 2009 20:06:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Feb 2009 12:06:24 -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; Wed, 18 Feb 2009 20:06:23 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 22682234C4B7 for ; Wed, 18 Feb 2009 12:06:03 -0800 (PST) Message-ID: <1442989792.1234987563139.JavaMail.jira@brutus> Date: Wed, 18 Feb 2009 12:06:03 -0800 (PST) From: "Christian Schneider (JIRA)" To: issues@cxf.apache.org Subject: [jira] Commented: (CXF-2027) Problem in getting CXF output in particular format In-Reply-To: <752733270.1234169699555.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-2027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12674768#action_12674768 ] Christian Schneider commented on CXF-2027: ------------------------------------------ If you want specific output it is probably better to define a schema and wsdl by hand and create code from it. So you have more control over the result. > Problem in getting CXF output in particular format > -------------------------------------------------- > > Key: CXF-2027 > URL: https://issues.apache.org/jira/browse/CXF-2027 > Project: CXF > Issue Type: Improvement > Components: Configuration, Core, JAX-WS Runtime > Environment: Jboss,Spring Framework,CXF > Reporter: kishore > Priority: Critical > Original Estimate: 4h > Remaining Estimate: 4h > > 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: > class="SampleServiceImpl"> > > > implementor="#sampleService" > address="/SampleService" > bindingUri="http://apache.org/cxf/binding/http"> > > > > > > > > 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.