Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WSDL2JAVA

 
Mortin kim
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI.,
I am trying to invoke one webservices.
What i have is wsdl file,By using this i need to generate JAVA stubs.
for that do i need to use wsdl2java command.
can any one tell me the steps to generate java stubs using wsdl2java command using AXIS 1.4 api.

Thanks for your time.
Kim.
 
Peer Reynders
Bartender
Posts: 2968
6
 
Pavel Cherkashin
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
wsdl2java is a tool included in most Java Web Service Implementation (Sun's, Axis'es etc). The tool is usually released as command line program (bat, sh). Generally speaking, the same tools often released as ANT tasks too.
To generate java stubs the wsdl file can be downloaded and saved locally, or pointed as accessible resource (URL). The path (or url) to wsdl file goes as a required parameter for tool. Rest of parameters - folder where to place generated java sources, java package for these sources, and a number of params with minor meaning, which help to customize the result.
Given description can be considered as a short description of tool and targeted usage. More detailed information can be reached by calling particular tool (Axis'es or Sun's or other) with help flag or without parameters(by default they usually draw help info).
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic