In case you needed it, here is a simple straight-forward example for you to follow:
http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html?page=2 -----Original Message----- From: Mayur Shetye [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 9:24 AM To: [EMAIL PROTECTED] Subject: RE: java2wsdl Help needed Thanks Laxma and Christophe. I also have generated similar WSDL using toold from JDeveloper but it also makes another Iservice1.java file. I still am confused about a few things . To implement a webservice >>> 1. I write the interface 2. I write the implementation of the interface, 3.I generate the WSDL using Java2WSDL from my interface 4. I generate stubs using WSDL2Java for my client. 5. I use the stubs in a client program to invoke the webservice. Please let me know if I have got this right. Thanks Mayur Shetye --- Christophe Roudet <[EMAIL PROTECTED]> wrote: > 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:[EMAIL PROTECTED] > > Sent: Monday, July 12, 2004 3:01 PM > > To: [EMAIL PROTECTED] > > 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 <class-of-portType> 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 > > > > __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo
