Showing posts with label wsdl2java. Show all posts
Showing posts with label wsdl2java. Show all posts

Sunday, 10 November 2013

wsdl2java

This is a very short post on installation and command line interface for wsdl2java. I wanted to explore the command line interface and understand the tool more since calling wsdl2java from maven is somewhat magic to me.

Installation

  • Download apache-cxf from http://cxf.apache.org/download.html
  • Extract .zip file and put location of extracted bin directory in your PATH
    E.g. I did the following
    export PATH=$PATH:/Library/Apache-CXF/apache-cxf-2.7.7/bin
  • Try out wsdl2java on command prompt. This should return the usage.

WSDL

  • Get hold of the wsdl, in this blog we are using airport-information which is a slightly non-trivial wsdl from http://free-web-services.com/

Generate fully annotated Java code from WSDL

  • Run following to generate Java code

More on wsdl2java help can be found online.

In future blogs I plan to use this wsdl and make a proper application out of it to get airport information from around the world, if I get free time ;-)