Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 53448 invoked from network); 23 Aug 2006 08:33:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Aug 2006 08:33:29 -0000 Received: (qmail 33197 invoked by uid 500); 23 Aug 2006 08:33:26 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 33156 invoked by uid 500); 23 Aug 2006 08:33:26 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 33145 invoked by uid 99); 23 Aug 2006 08:33:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Aug 2006 01:33:26 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Aug 2006 01:33:25 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5C62D410023 for ; Wed, 23 Aug 2006 08:30:14 +0000 (GMT) Message-ID: <33429940.1156321814351.JavaMail.jira@brutus> Date: Wed, 23 Aug 2006 01:30:14 -0700 (PDT) From: "Deepal Jayasinghe (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Resolved: (AXIS2-1063) Code generated by wsdl2java won't compile In-Reply-To: <30675317.1156289655802.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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS2-1063?page=all ] Deepal Jayasinghe resolved AXIS2-1063. -------------------------------------- Resolution: Fixed fixed and commit the code > Code generated by wsdl2java won't compile > ----------------------------------------- > > Key: AXIS2-1063 > URL: http://issues.apache.org/jira/browse/AXIS2-1063 > Project: Apache Axis 2.0 (Axis2) > Issue Type: Bug > Components: databinding > Reporter: Chad Boyd > Attachments: Transactions_type10.java > > > When trying to compile the code generated by the WSDL located at https://copyws.cendant.com/B2BGateway/service/XMLSelect?WSDL I get errors. The reason for the compile errors is the wsdl2java generates a "String" class. Some of the methods use the "java.lang.String" class as a return type, but it's not prefixed with the package name. Since the generated String class is in the same package, the compiler thinks that it is referring to it. But the "java.lang.String is really needed. Here is a snippet of code that is causing problems: > /** > * Create a prefix > */ > private String createPrefix() { > return "ns" + (int)Math.random(); > } > I've attached the entire generated source for this class. The "java.lang" prefix is used in some of the code, so I think somone just forgot to include this in the templates maybe? If you run the wsdl2java tool and try to tcompile the code you will see what I'm talking about. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org