compile:
mvn clean compile assembly:single
start XML-RPC Server:
java -cp target/xmlrpc-test-server-1.0-jar-with-dependencies.jar net.thomd.JavaServer
monitor any traffic on loopback interface on port 8080:
ngrep -d lo0 port 8080
call method sumAndDifference(11,7)
:
python -c 'import xmlrpclib; print xmlrpclib.Server("http://localhost:8080/RPC2").sample.sumAndDifference(11,7)'
Add this depencies my pom file
<dependency> <groupId>xerces</groupId> <artifactId>xerces</artifactId> <version>1.4.0</version> </dependency>
It is work fine