Xmlrpc connection refused

Hello all,

I am trying to understand how to communicate a startsign from a urcap to a welding machine through xml rpc and modbus. It is a hard subject for me because i only learned some front-end coding.

So i started with this in generatescript:
writer.appendLine(“start=rpc_factory(“xmlrpc”, “http://192.168.109.41:5000”)”);
writer.appendLine(“var1= True”);
writer.appendLine(“var2 = start.GetBooleanAndReplyInteger(var1)”);

(from: Xml-rpc documentation inconsistency?)

And in python i used the following code:
import xmlrpclib
proxy = xmlrpclib.ServerProxy(“http://192.168.109.41:5000/”)
hello = proxy.start()
print(hello)

If I run the program and the python script I get this message:

I think it says two things:

  • connection refused (I think that is because i didn’t implemented the python script into the urcap (i dont know how to do that yet and i thought it would work on a other device too)
  • var2 = start.getBooleanAndReplyInteger(var1) is not correct.

Can anybody tell me what I am doing wrong and give me some advice how to fix this?

Thank you in advance!

Regards, Zoë