This article describes a creation of a Axis Web Service Client using Eclipse IDE 3.2 with Web Tools Platform 1.0 installed to run on JBoss 4.0.3 SP1.
Before the usage of the Eclipse wizard a appropriate project structure should be defined. For this purpose a ”
Enterprise Application Project” should be created.
-
Assign the resulting web project to the enterprise application project using ”
J2EE Module Dependencies” of the Enterprise Project.
Right Click on WSDL-File and select Web Services → Generate Client from context menu
Adjust configuration selecting created client and client ear projects and proceed with Next
Activate “Define custom mapping for namespace to package” flag and procees with Next
Map all user defined namespaces from WSDL to corresponding packages
Start generation with Finish
| File | Description |
| xxxService.java | Interface defining the type-safe service |
| xxxServiceLocator.java | Service implementation |
| xxxPortType.java | Port type defining type-safe methods. This interface is the Java pendant to the WSDL file. |
| xxxPortTypeProxy.java | Port type implementation |
| xxxBindingStub.java | Contains the implementation, serialization / deserialization mechanisms and hooks in to the Apache Axis Engine. |
Create an instance of a ServiceLocator
Set EndpointAddress
Retrieve the PortType from the ServiceLocator
perform the method call