Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to generate WSDL file for a java class

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Vinod K Singh
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at Wsgen tool.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
Webservice.jpeg
[Thumbnail for Webservice.jpeg]
 
Vinod K Singh
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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-
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic