beautypg.com

Creating an axis2/java aar file – HP Integrity NonStop J-Series User Manual

Page 198

background image

and XML. The RPC MessageReceivers message receiver is used for the sample
TemperatureConverter web service.

To create the deployment descriptor, complete the following steps:

1.

Create a new directory named META-INF in the <My SASH
Home
>\axis2\gettingstarted\TemperatureConverter

directory on your Windows

system.

2.

Create the services.xml in META-INF directory (using any text editor) on your Windows
system. If you do not want to create your own deployment descriptor file, you can use the
following lines of code to create your services.xml file.





class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>

TemperatureConverter
false
true
mep="http://www.w3.org/ns/wsdl/in-out"
namespace="http://ws.apache.org/axis2">
urn:f2cConversion

http://TemperatureConverterPortType/f2cConversionResponse


mep="http://www.w3.org/ns/wsdl/in-out"
namespace="http://ws.apache.org/axis2">
urn:c2fConversion

http://TemperatureConverterPortType/c2fConversionResponse



Creating an Axis2/Java AAR File

An Axis2/Java AAR file contains the compiled code of the service implementation class, and
the services.xml file. You can use the JAR utility to create the AAR file for TemperatureConverter.

To create an Axis2/Java AAR file, complete the following steps:

1.

Go to the <My SASH Home>\axis2\gettingstarted\TemperatureConverter
directory using the command:

command prompt> cd <My SASH Home>\axis2\gettingstarted\TemperatureConverter

2.

Create the AAR archive using the command:

command prompt> jar -cvf TemperatureConverter.aar *.class META-INF

The TemperatureConverter.aar file is created in the TemperatureConverter directory.

Deploying the TemperatureConverter Web Service on NonStop

To deploy the TemperatureConverter.aar) file on your NonStop system, complete the following
steps:

198 Axis2/Java Framework

This manual is related to the following products: