SimpleXMLRPCServer vs handlername question

  • Thread starter Raaijmakers, Vincent \(IndSys,GE Interlogix\)
  • Start date
R

Raaijmakers, Vincent \(IndSys,GE Interlogix\)

I'm struggling a bit to get a java client connected to my SimpleXMLRPServer.

The issue is that the java client wants to call a specific handler on my server.
so:
server.handler.method()

Like Pyro, I can give on the server side my handler a specific name at the time a register that handler as an instance.
But, how to do that with this XMLRPC server?
So for example:

handler = Handler()
server = SimpleXMLRPCServer(('localhost', port))
server.register_instance(handler, 'aHandlerName') #which is not possible

Perhaps I have to use a different type of server.

Unfortunately, I couldn't find examples in the libraries and using Google..
Please give me some advises.

Thanks,
Vincent
 
S

Shalabh Chaturvedi

Raaijmakers said:
I'm struggling a bit to get a java client connected to my
SimpleXMLRPServer.

Which XML-RPC Java library are you using?
But, how to do that with this
XMLRPC server? So for example:

handler = Handler()
server = SimpleXMLRPCServer(('localhost', port))
server.register_instance(handler, 'aHandlerName') #which is not possible

This depends on what exact function name the Java client is trying to call.
For example, you could try:

def function():
# function code here

server.register_function('aHandlerName.functionName', function)

If above doesn't work, you could log the network communication and look at
the XML-RPC HTTP request to see what function name is being called.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top