It would be better, if you'd file a bug report with a suggested patch. Jochen
On Mon, Jun 15, 2009 at 7:55 AM, Livnat Peer<lp...@redhat.com> wrote: > Hello, > I am working with xmlrpc-client version 3.1.1. > I have a java client and the server is written in python. > I want to invoke a remote methods, who's name is without any prefix, on the > server side. > The problem is when using the methods "newInstance" they can: > 1. add the class name as a prefix (if i use the first 2 signatures): > public interface X{ > public void foo(); > } > > foo() invokes--> X.foo() > 2. add the string i pass in pRemoteName as a prefix (if i used the 3rd > signature): > invoking newInstance with pRemoteName="goo" invokes--> "goo.foo()" > passing pRemoteName="" invokes --> ".foo()" > > The fix i need is in the class > "ClientFactory.java" > in method > "public Object newInstance(ClassLoader pClassLoader, final Class pClass, > final String pRemoteName)" > > add a check if the pRemoteName is empty, if this is the case then no need to > concatenate "." before the method name. > > today - String methodName = pRemoteName + "." + pMethod.getName(); > > a fix - String methodName = pMethod.getName(); > if(pRemoteName.length()>0){ > methodName = pRemoteName + "." + methodName; > } > > > Is it possible to get this fix into the package? > > thank you, Livnat. > > > > > > > > > -- Don't trust a government that doesn't trust you.