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.
Deepal 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: java-user-unsubscr...@axis.apache.org > For additional commands, e-mail: java-user-h...@axis.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org