Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 76075 invoked from network); 25 Feb 2009 03:43:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Feb 2009 03:43:26 -0000 Received: (qmail 91632 invoked by uid 500); 25 Feb 2009 03:43:26 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 91617 invoked by uid 500); 25 Feb 2009 03:43:26 -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 91606 invoked by uid 99); 25 Feb 2009 03:43:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Feb 2009 19:43:26 -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, 25 Feb 2009 03:43:24 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A5F4E234C48C for ; Tue, 24 Feb 2009 19:43:02 -0800 (PST) Message-ID: <673193435.1235533382580.JavaMail.jira@brutus> Date: Tue, 24 Feb 2009 19:43:02 -0800 (PST) From: "kishore (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=12676492#action_12676492 ] kishore commented on CXF-2027: ------------------------------ Hi Christian Schneider, Can u please give me a sample to define a schema and wsdl by hand ,.......?? (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.