Hi Ilja, If you already have java classes the why you have to regenerate those from WSDL?
Here are the two scenrios. 1. Assume that you have the WSDL and want to deploy the web services described in this WSDL in Axis. a. You can create the java classes using WSDL2Java OR b. You can just handcode the Java classes. To deploy the service in Axis you essentially need only 3 types of classes, other classes are not essential but required if you are using specific types of clients to access those services. If you just use DII to invoke the service and if your services are simple without header data etc. then while deploying the service you need these three types of classes. - Interface class - Implementation class - Classes for any user defined data types only if you are using any user deined types. - Handler classes only if your service requires that. So basically you just need the interface and the implementation class for simple services. And if you want to use JWS then just one. Please refer to Axis user guide for details (Calculator.jws). If you wants to generate all the classes using WSDL2Java then use the "-a" option. 2. Assume that you already have the Java classes and wants get the WSDL for your service. Here again you have two option: a. deploy the service by copying the classes to webapps and then create the WSDD file deploy the service. Once the service is deployed, access the services link. you will see the deployed services. click the webservice_name link to get the WSDL file. b. other way to get the WSDL is user Java2WSDL utility. >- Can you also publish your webservices in your own webapp, without > deploying it in the axis webapp? Do you mean that without physically copying the classes into <container_home>/webapps/axis folder? Physical location of the classes does not matter, but you will have to configure your webserver for the same. Hope this is helpful. Shrikant... Optimyz Software, Inc. email: [EMAIL PROTECTED] www: www.optimyz.com For more information on WebServiceTester product visit: http://www.optimyz.com Original Message: ----------------- From: Ilja [EMAIL PROTECTED] Date: Tue, 07 Oct 2003 21:09:45 +0200 To: [EMAIL PROTECTED] Subject: Re: couple of questions Ok thanks, so if I understand correctly, I first have to use java2wsdl to generate a wsdl file from my interface-class and then I have to run wsdl2java to generate those classes from my wsdl file? Isn't there a solution to do it in one step? Ilja On Tue, 7 Oct 2003 16:42:53 +0600, "vairamuthu thayapavan" <[EMAIL PROTECTED]> said: > hi > u can't do any thing with having the wsdl file only. to deploy your > webservice u have to generate server binding stubs using wsdl2java tool. > those are discribed detaily in the axis userguide. > > regards > vtpavan > ----- Original Message ----- > From: "Ilja" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, October 07, 2003 3:01 AM > Subject: Axis: couple of questions > > > Hi, > > I tried generating a wsdl file succesfully with my ant-build script from > an interface. However some things are not quite clear to me: > > - Can you also publish your webservices in your own webapp, without > deploying it in the axis webapp? > - Shouldn't more files be generated? eg like these?: > > WidgetPriceSoapBindingImpl.java : Java file containing the default > server implementation of the WidgetPrice web service. > > > You will need to modify the *SoapBindingImpl file to add your > implementation (see > ../samples/userguide/example6/WidgetPriceSoapBindingImpl.java ). > WidgetPrice.java: New interface file that contains the appropriate > java.rmi.Remote usages. > > > WidgetPriceService.java: Java file containing the client side > service interface. > > > WidgetPriceServiceLocator.java: Java file containing the client > side service implementation class. > > > WidgetPriceSoapBindingSkeleton.java: Server side skeleton. > > > WidgetPriceSoapBindingStub.java: Client side stub > > - I now have only a wsdl file and I'm pretty sure that's not enough to > publish my own webservices, more classes are needed right? > > Thanks, > > Ilja > > > > > > -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ .
