beautypg.com

Creating the web service implementation class – HP Integrity NonStop H-Series User Manual

Page 202

background image

1.

Creating the Web Service Implementation Class

2.

Creating the Deployment Descriptor

3.

Creating an

Axis2/Java AAR

File

Creating the Web Service Implementation Class

To create the Web Service implementation class, complete the following steps:

1.

Create the

TemperatureConverter

sub-directory in

<My SASH

Home>\axis2\gettingstarted directory

on your Windows system.

2.

Create a Java class

TemperatureConverter.java

in the

TemperatureConverter

directory using any text editor.

3.

Modify the

TemperatureConverter.java

class to implement

c2fConversion

and

f2cConversion

(to convert Celsius to Fahrenheit and Fahrenheit to Celsius respectively)

methods.

After incorporating these two methods, the

TemperatureConverter.java

class appears

as follows:

202

Getting Started with Axis2/Java

This manual is related to the following products: