How to Convert WSDL to Java Using Axis

How to Convert WSDL to Java Using Axis thumbnail
It is possible to convert WSDL to Java using Axis.

Axis2, developed and maintained by Apache, is a core engine for Web services that allows you to add Web services interfaces to your Web applications. It can also act as a Web server application. If you want to create a Web service client, you can do it manually or create a Web Service Description Language definition to describe the messages clients should send and expect to receive. In case you are working in a Java environment, Axis has a built-in tool that you can use to convert WSDL to Java.

Instructions

    • 1

      Open your favorite Web browser, and navigate to the Apache Axis 2 download page (see Resources). Click on the "zip" link in the "1.6.x releases" binary distribution section, and save the archive on your desktop.

    • 2

      Right-click on the "axis2-1.6.1-bin.zip" archive, and select "Extract Here" from the drop-down menu. An "axis2-1.6.1" folder is created on your desktop.

    • 3

      Go to the "Start" menu, and type "cmd" (without the quotes) in the "Run" box. Press "Enter" to start the Windows Command Prompt. Type "cd desktop\axis2-1.6.1\bin" (without the quotes) and press "Enter" to point the Command Prompt to the "bin" folder.

    • 4

      Copy the WSDL file in the "axis2-1.6.1\bin" folder. Type "wsdl2java.bat file.wsdl" (without the quotes) in the Command Prompt. Replace "file" with the exact name of your WSDL file and press "Enter" to convert the WSDL file to Java.

    • 5

      Wait for the conversion to end. A new directory, called "src," is created in the "bin" directory; you can find the Java classes created by Axis from the WSDL file inside the "src" folder.

Tips & Warnings

  • You can use the "java2wsdl.bat" tool to convert the Java classes back to WSDL files.

Related Searches:

References

Resources

  • Photo Credit Christopher Robbins/Photodisc/Getty Images

Comments

Related Ads

Featured