File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes How to generate WSDL file for a java class Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "How to generate WSDL file for a java class " Watch "How to generate WSDL file for a java class " New topic
Author

How to generate WSDL file for a java class

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2229

Hi

I have a simple java class developed with JAX WS Annotations ,i have exposed it as a webservice using @Webservice and @webmethods .

Now i deploy this in a Sun One Application server it automatically generates a WSDL file .

But i dont want it that way , is there any way so that i can generate the WSDL file using any tool and later deploy that in any Server .

Please share your ideas

Thank you.

Save India From Corruption - Anna Hazare.
Vinod K Singh
Ranch Hand

Joined: Sep 30, 2008
Posts: 198
Have a look at Wsgen tool.


My Blog
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2229

Hi ,

Thanks for the response vinodh .
The tool is nice to genearte the WSDL files for the given java class

But somehow i am doing some mistake and cant figure it out .

It is displaying as Missing SEI .

can you please help me .
[Thumb - Webservice.jpeg]
 Filename Webservice.jpeg [Disk] Download
 Description
 Filesize 27 Kbytes
 Downloaded:  11 time(s)

This message was edited 2 times. Last update was at by Ravi Kiran V

Vinod K Singh
Ranch Hand

Joined: Sep 30, 2008
Posts: 198
You can try with relevant wsgen commans options mentioned in JAX-WS documentation. Alternatively this can be done using Ant script as well, one example is given below-
 
 
subject: How to generate WSDL file for a java class
 
MyEclipse, The Clear Choice