Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.1
-
None
-
None
-
Windows XP, jdk1.5.0_08, Maven 1.0.2, Mozilla Firefox 1.5.0.6
Description
Currently, Axis does not specifically return an error or inform user when a name is not given for a service inside a service group.
This issue is highlighted when only one service with blank service name is available inside a service group. In that case, service archive is deployed successfully without informing user about the errorneous service description.
Steps to reproduce:
===================
1. Define service.xml with service groups.
i.e:-
<serviceGroup>
<service name="">
<description>
This is a sample Web Service with two operations,echo and ping.
</description>
<parameter name="ServiceClass" locked="false">addNumbers</parameter>
<operation name="addition">
<messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
</operation>
</service>
</serviceGroup>
Make sure to keep service name blank.
2. Create a service archive (*.aar)
3. Log in to Axis2 administration console and click on 'Upload Services' link in the left pane
4. Browse for the above service archive and upload it
5. upload successful message will be displayed
6. Click on 'Available Services' link
Actual Result:
=============
Service is not listed as a faulty service.
Expected Result:
================
Service should be listed in the faulty list, since the service description violates the following rule specified in the Axis2 user guide.
"name of the service is a compulsory attribute."