Wrong exception occurs when trying to invoke a service which is configured with
an invalid message receiver
-----------------------------------------------------------------------------------------------------------
Key: AXIS2-1953
URL: https://issues.apache.org/jira/browse/AXIS2-1953
Project: Apache Axis 2.0 (Axis2)
Issue Type: Bug
Affects Versions: 1.1.1
Environment: jdk1.5, Win Xp
Reporter: Charitha Kankanamge
I created the following service class and deployed with the following
services.xml.
service implementation class
----------------------------------------
public class myService {
public String echo(String s){
return s;
}
}
Services.xml
------------------
<service name="myService">
<description>
This is a sample service created to test Axis2 client API
</description>
<parameter name="ServiceClass"
locked="false">myService
</parameter>
<operation name="echo">
<messageReceiver
class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
</operation>
</service>
Then I tried to invoke the service using a client which used OMElement payload
and ServiceClient.
I got the following exception when running the client.
org.apache.axis2.AxisFault: ServiceClass does not implement required method of
the form OMElement echo(OMElement e)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:271)
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579)
at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)
at client.main(client.java:42)
However the correct cause of the problem here is not what the exception says.
Here I used a wrong message receiver class in the service and the exception
does not say anything about the exact issue.
Please generate the correct exception/error in this scenario. (eg:- An error
such as 'The specified message receiver is invalid for the scenario' )
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]