Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Web Tools Guide
Previous Page Home Next Page

using command line tools

Creating a Web service client using Ant tasks

If you have a WSDL file you can use Ant through the Eclipse workspace to generate a Web service client using the Axis run-time environment.

Before creating the Web service client you must:
In order to create the Web service client you need to modify the Ant file and the Ant properties file.
  1. Edit the Ant file (axis_client.xml) that you imported in the prerequisite steps. Ensure that it points to the client Ant properties file: it should contain a line stating <property file="axis_client.properties"/>. Save any changes that you have made.
  2. Edit the axis_client.properties file that you imported in the prerequisite steps.
    1. Ensure that the scenarioType parameter is set to client.
    2. Set the workspace parameter so that it points to the location of your WSDL file.
    3. All other parameters are optional and should be deleted if not explicitly set. The default values for the remaining parameters will be retrieved from the dynamic project settings. For additional information on how to set these parameters refer to: Axis Web service client Ant task properties file reference
    Save the axis_client.properties file.
  3. Right-click axis_client.xml and select Run As > Ant Build...
  4. In the dialog that opens, select the JRE tab and select Run in the same JRE as the workspace. Click Apply and then click Run.
  5. Once your Web service has been generated the console displays a Build Successful message.
The following files will have been created and placed in the dynamic Web project's WebContent\wsdl folder:
  • Service_nameSOAP.wsdl
The following files will have been created and placed in the dynamic Web project's WebContent\WEB-INF folder:
  • undeploy.wsdd
  • deploy.wsdd
The following files will have been created and placed under the dynamic Web project's src folder. Depending on the WSDL file on which the Web service client is based, the files for your Web service client may be different:
  • Service_nameProxy.java
  • getService_name.java
  • getService_nameLocator.java
  • getService_nameSoap.java
  • getService_nameSoapProxy.java
  • getService_nameSoapStub.java

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire