Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 55698 invoked from network); 12 Jul 2004 20:15:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 12 Jul 2004 20:15:04 -0000 Received: (qmail 61789 invoked by uid 500); 12 Jul 2004 20:14:53 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 61772 invoked by uid 500); 12 Jul 2004 20:14:53 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 61761 invoked by uid 99); 12 Jul 2004 20:14:53 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.5.194.99] (HELO berlinr.sprint.ca) (209.5.194.99) by apache.org (qpsmtpd/0.27.1) with ESMTP; Mon, 12 Jul 2004 13:14:48 -0700 Received: from Benoit ([149.99.188.254]) by berlinr.sprint.ca (InterMail vM.5.01.02.00 201-253-122-103-101-20001108) with ESMTP id <20040712201445.FIOV7326.berlinr.sprint.ca@Benoit> for ; Mon, 12 Jul 2004 16:14:45 -0400 From: "Christophe Roudet" To: Subject: RE: java2wsdl Help needed Date: Mon, 12 Jul 2004 16:16:39 -0400 Organization: ActiVia Inc. MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Thread-Index: AcRoQuc+hff67Wn8T5G5uYXSQGJSNwACgrrw In-Reply-To: <20040712190100.52954.qmail@web13808.mail.yahoo.com> Message-Id: <20040712201445.FIOV7326.berlinr.sprint.ca@Benoit> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Try to turn your service into an interface: package samples.myEchoInt; public interface IEchoIntService { public int echoInt(int i); } Christophe > -----Original Message----- > From: Mayur Shetye [mailto:mayurkumar@yahoo.com] > Sent: Monday, July 12, 2004 3:01 PM > To: axis-user@ws.apache.org > Subject: java2wsdl Help needed > > this is a simple java class , I want to generate a > simple WSDL frile from it and then use that WSDL to > create stubs on the client side . > > The code is as follows > > ____________ > > package samples.myEchoInt; > > public class EchoIntService > { > public int echoInt(int i) > { > return i; > } > } > > > > _____________ > > > My java2wsdl arguement is > > java org.apache.axis.wsdl.Java2WSDL -o wp.wsdl > -l"http://localhost:8080/axis/services/EchoIntService" > -n "urn:myservice.com" -p"samples.myEchoInt" > "urn:myservice.com" samples.myEchoInt.EchoIntService > > > > I get an error saying > > The has already been specified as, > a. It cannot be specifie > d again as samples.myEchoInt.EchoIntService. > Java2WSDL emitter > Usage: java org.apache.axis.wsdl.Java2WSDL [options] > class-of-portType > > > Can anyone please tel me why ? > > regards > Mayur Shetye > > > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - 100MB free storage! > http://promotions.yahoo.com/new_mail