Re: overloaded methods/constructors in Axis2?

2008-01-30 Thread Deepal jayasinghe




Hi,
 
 
I have a class at the server side containing 2  
overloaded constructors one with no arguments and the other accepting 
a String argument

eg : public TestOverloaded(){}
public TestOverloaded(String argname){}
 
The problem is that when i am trying to invoke the constructor with 
the argument from my RPCCLIENT it is invoking the default constructor.
Yes that is the what Axis2 does , when Axis2 initialize a class it uses 
it default constructor. If you want Axis2 to use other then then you 
have to create something called ServiceObjectSuppler and specify that in 
services.xml


Thanks
Deepal
 
Can some one please suggest me on this.
 
Thanks & Regards,

Aruna Sydu





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



overloaded methods/constructors in Axis2?

2008-01-30 Thread aruna sydu
Hi,


I have a class at the server side containing 2  overloaded constructors one
with no arguments and the other accepting a String argument.
eg : public TestOverloaded(){}
public TestOverloaded(String argname){}

The problem is that when i am trying to invoke the constructor with the
argument from my RPCCLIENT it is invoking the default constructor.

Can some one please suggest me on this.

Thanks & Regards,
Aruna Sydu