Tuscany Hello World Axis

Overview

The Tuscany hello world axis sample is not an SCA application.  This sample is a simple Apache Axis service. Starting from a Java source using Axis's java2wsdl to create a document literal WSDL.  And then using that WSDL in wsdl2java to create all the Axis service and client artifacts. Details on this can be found reviewing the Axis documentation.

The original Java code to generate is simply:

package org.apache.tuscany.samples.helloworldaxis;

/**
 *
 */

public interface HelloWorldService{
    public static final String DEFAULT_NAME= "World";
    public String getGreetings(String name);

}

The purpose for it's inclusion in the samples is to demonstrate the interoperability of  Tuscany's web service binding with another SOAP implementation.

Setup

The following jars are required from the Maven repository in the classpath to run the sample client
helloworldaxis-SNAPSHOT.jar
axis-1.2.1.jar
axis-jaxrpc-1.2.1.jar
axis-saaj-1.2.1.jar
axis-wsdl4j-1.5.1.jar
commons-discovery-0.2.jar
commons-logging-1.0.4.jar

See helloworldws and  helloworldaxissvc samples for the server side service setup instructions.

Running.

Using JDK 1.5 java command with the previous jars run the class org.apache.tuscany.samples.helloworldaxis.HelloWorldAxisClient
Optional arguments:
 
  Run against sample Tuscany SCA service: (default no arguments)
     http://localhost:8080/helloworldws-SNAPSHOT/services/HelloWorldService World
  Run against sample Axis Service:
     http://localhost:8080/helloworldaxissvc-SNAPSHOT/services/helloworld World

Results

The sample when run should simply display to the standard output:
Hello World

Code Overview

More detailed information about Axis web services can be found on the Apache Axis website.