• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generating java from WSDL

 
Manigandan Velraj
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a WSDL file and i want to generate java classes from it. i use wsimport to do that. I am able to generate all the java and class files using wsimport, but i need only beans (classes with only getters and setters to be generated)

Can you please help me in generating java classes for content with in <wsdl:types></wsdl:types>

The wsdl is available in http://www.webservicex.net/weatherforecast.asmx?wsdl

Thanks,
 
Aj Maven
Greenhorn
Posts: 22
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What IDE are you using ?
If you are using Eclipse IDE, then you can use web service wizard('Ctrl+N'/Web Service/Web Service Client).
You just have to provide the wsdl url and the output folder.
 
Manigandan Velraj
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That helps.. Thanks for the answer.
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
If you generate artifacts using the web service wizard in Eclipse, make sure you get what you want.
I am not sure it generates JAXB bean classes. ...and it will still generate other artifacts.
If you do not mind using a terminal window, then use the JAXB schema compiler command "xjc".
It will generate JAXB bean classes from an XML schema or a WSDL and nothing more.
Best wishes!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic