Two Laptop Bag*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
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: 2234

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: 2234

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 .


[Thumbnail for Webservice.jpeg]

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-
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to generate WSDL file for a java class
 
Similar Threads
maxOccurs issue
How to generate a WSDL for a Java based web service developed using JAXWS Annotations
Packaging / zipping / jaring / waring a webservice for axis 1.4
Rizwan Mohammad .....question
deploying a Java1.4 app in Tomcat 5.5.25