File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes WSDL2JAVA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "WSDL2JAVA" Watch "WSDL2JAVA" New topic
Author

WSDL2JAVA

Mortin kim
Ranch Hand

Joined: Nov 15, 2007
Posts: 44
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

Joined: Aug 19, 2005
Posts: 2906
3. WSDL2Java: Generate the Server-side Wrapper Code and Stubs For Easy Client Access


"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
Pavel Cherkashin
Ranch Hand

Joined: Mar 04, 2005
Posts: 47
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).


Pavel Cherkashin - <br />SCJP, SCWCD, SCDJWS, SCBCD, SCEA, ...<br />www.linkedin.com/in/pcherkas
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WSDL2JAVA
 
Similar Threads
need help on requestFlow and handler in wsdd
wsdl2java and org.jvnet.jaxb2.maven2
How to write a java webservice client
call web service from java interface possible?
Apache CXf stub class generation - JAXBElement datatype