Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 89739 invoked from network); 13 Mar 2007 03:40:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Mar 2007 03:40:30 -0000 Received: (qmail 92596 invoked by uid 500); 13 Mar 2007 03:40:39 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 92579 invoked by uid 500); 13 Mar 2007 03:40:39 -0000 Mailing-List: contact cxf-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-issues@incubator.apache.org Received: (qmail 92570 invoked by uid 99); 13 Mar 2007 03:40:39 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Mar 2007 20:40:39 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Mar 2007 20:40:30 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id F33E1714079 for ; Mon, 12 Mar 2007 20:40:09 -0700 (PDT) Message-ID: <26412828.1173757209994.JavaMail.jira@brutus> Date: Mon, 12 Mar 2007 20:40:09 -0700 (PDT) From: "Bozhong Lin (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Updated: (CXF-337) Java2WSDL fails to generate wsdl from POJO In-Reply-To: <3297768.1167212361084.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-337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bozhong Lin updated CXF-337: ---------------------------- Fix Version/s: 2.0-RC Affects Version/s: (was: 2.0-M1) > Java2WSDL fails to generate wsdl from POJO > ------------------------------------------ > > Key: CXF-337 > URL: https://issues.apache.org/jira/browse/CXF-337 > Project: CXF > Issue Type: Bug > Components: Tooling > Affects Versions: 2.0-RC > Reporter: Bharath Ganesh > Assigned To: maomaode > Fix For: 2.0-RC > > > I could also see the java2wsdl tool is buggy for a number of cases. For exampple I have a POJO annotated with JSR 181 annotations to be exposed as a WS. > import javax.jws.*; > @WebService > public class Calculator > { > public int add (int a, int b) throws AddException{ > if(a<0 || b<0){ > throw new AddException("No negetive please"); > } > return a+b; > } > } > When I run the java2wsdl tool by providing the above class, I get the following error. > Error : Can not load the request wrapper class com.pramati.rs.ws.jaxws.Add, please check the @Reque > stWrapper annotation and see if the class is in your classpath > The @RequestWrapper annotation is not mandatory. The container could have well used RPC/Literal. > Later when I annotated the Service with @SOAPBinding(style= SOAPBinding.Style.RPC, use= SOAPBinding.Use.LITERAL) , the problem I faced was: > Error : com.pramati.rs.ws.AddException.getFaultInfo() -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.