Generating “Stubs” from WSDL and Axis tool.



Step 1: Install Java and its environment setup.


Step 2: Axis tool and its environment setup.
[Axis Environment set up: – variable name: AXIS2_HOME & variable value: …\xxx\ axis2-1.5.1]



Step 3: Use “wsdl2java.bat” for windows and “wsdl2java.sh” for Linux.
In the command line to generate Java code (client stub) according to a given WSDL file.



Step 4: Usage of “wsdl2java”. wsdl2java.{sh|bat} [OPTION]… -uri

Example in windows:
wsdl2java.bat –uri https://apac.webservices.travelport.com/B2BGateway/service/XMLSelect?wsdl –o C:\Documents



Step 5: Stub will be inside “C:\Documents” folder.



Reference: – axis.apache.org

Advertisements

Tags: , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s