axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepal Jayasinghe <>
Subject Re: Regarding Method Overloading
Date Thu, 23 Jun 2011 11:58:31 GMT
Hi Arpit,
As you have observed Axis2 does not support method overloading (by
default). Of course you can get it working by writing your own message
receiver. This problem arises when default message receiver tries to
load the method using reflection, it does not take number of paramters
when it does the reflection.


On 6/23/2011 3:50 AM, Arpit Gupta wrote:
> HI all,
> I am using axis2 with EJB having following setup.
> Service Interface----
>  testUser(String args0,String args1).
> SessionBean---
> method 1-----testUser(String args0,String args1)
> method 2-----testUser(String args0,String args1,String args3)
> Now, My problem is i am calling the service with 2 parameters and
> instead of calling method 1, server is calling method 2.
> I read somewhere that Axis2 does not support method overloading, But i
> think this is not the method overloading case because the service
> interface have only one method and so is wsdl file. So I want to know
> why this problem is coming. also the problem is not coming for all, i
> mean locally i can test the service correctly but when i deploy it on
> another server the problem came. though for other methods(which are
> not overloaded in session bean) service is working fine on both servers.
> Thanks,
> Arpit
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message