Manual
<?xml version="1.0" encoding="UTF-8"?>
<serviceGroup>
<service name="TemperatureConverter">
<messageReceivers>
<messageReceiver mep="http://www.w3.org/ns/wsdl/in-out"
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
</messageReceivers>
<parameter name="ServiceClass">TemperatureConverter</parameter>
<parameter name="useOriginalwsdl">false</parameter>
<parameter name="modifyUserWSDLPortAddress">true</parameter>
<operation name="f2cConversion"
mep="http://www.w3.org/ns/wsdl/in-out"
namespace="http://ws.apache.org/axis2">
<actionMapping>urn:f2cConversion</actionMapping>
<outputActionMapping>
http://TemperatureConverterPortType/f2cConversionResponse
</outputActionMapping>
</operation>
<operation name="c2fConversion"
mep="http://www.w3.org/ns/wsdl/in-out"
namespace="http://ws.apache.org/axis2">
<actionMapping>urn:c2fConversion</actionMapping>
<outputActionMapping>
http://TemperatureConverterPortType/c2fConversionResponse
</outputActionMapping>
</operation>
</service>
</serviceGroup>
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.
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 TemperatureConverter Web Service on NonStop
To deploy the EmpInfo AAR (TemperatureConverter.aar) file on your NonStop system,
complete the following steps:
1. Make sure you have the Axis2/Java web application deployed in NSJSP.
NOTE: For information on deploying the Axis2/Java web application in NSJSP, see the
Installing Axis2/Java Framework chapter.
2. Ensure that you have WRITE permissions to the <NSJSP deployment
directory>/webapps/axis2/WEB-INF/services directories.
You can verify this by using the OSS command:
OSS> ls –l <NSJSP deployment directory>/webapps/axis2/WEB-INF
For example, the command:
ls –l
/home/sash_usr/webserver/servlet_jsp/axis2/WEB-INF
204 Getting Started with Axis2/Java