• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Generating java from WSDL

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Greenhorn
Posts: 22
Eclipse IDE Postgres Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That helps.. Thanks for the answer.
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic