AXIS Web Service Client

Abstract

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.

Preconditions

  • Installed and configured JBoss 4 Server Runtime
  • a WSDL file

Preparation

  1. Before the usage of the Eclipse wizard a appropriate project structure should be defined. For this purpose a ”Enterprise Application Project” should be created.
  2. Then create a ”Dynamic Web Project
  3. Assign the resulting web project to the enterprise application project using ”J2EE Module Dependencies” of the Enterprise Project.

Generation

  1. Right Click on WSDL-File and select Web Services → Generate Client from context menu
  2. Adjust configuration selecting created client and client ear projects and proceed with Next
  3. Activate “Define custom mapping for namespace to package” flag and procees with Next
  4. Map all user defined namespaces from WSDL to corresponding packages
  5. Start generation with Finish

Results

File Description
xxxService.javaInterface defining the type-safe service
xxxServiceLocator.javaService implementation
xxxPortType.javaPort type defining type-safe methods. This interface is the Java pendant to the WSDL file.
xxxPortTypeProxy.javaPort type implementation
xxxBindingStub.javaContains the implementation, serialization / deserialization mechanisms and hooks in to the Apache Axis Engine.

Usage

  1. Create an instance of a ServiceLocator
  2. Set EndpointAddress
  3. Retrieve the PortType from the ServiceLocator
  4. perform the method call
ws/axis_web_service_client.txt · Last modified: %2006/%10/%10 %11:%Oct by sza
Translations of this page:
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0