Mj1234 has asked for the wisdom of the Perl Monks concerning the following question:
I have created an xmlrpc server with a python script and have two functions registered as shown.
import xmlrpclib server = SimpleXMLRPCServer(("localhost", 8000)) print ("Listening on port 8000...") server.register_function(read_symbol,"read_symbol") server.register_function(write_symbol,"write_symbol") server.serve_forever()
I now try to connect to this sever through my Perl client.
use Frontier::Client; $client = Frontier::Client->new(url =>"http://localhost:8000"); return $client->call('read_symbol',$variable);
This unfortunately returns me "Fault returned from XML RPC Server, fault code 1: <type 'exceptions.ValueError'>:cannot uniquely identify symbol". However a Python client is able to connect and get the response. Can someone let me know what could be wrong?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl RPC Client
by poj (Abbot) on Mar 16, 2018 at 07:48 UTC | |
by Mj1234 (Sexton) on Mar 16, 2018 at 09:11 UTC | |
|
Re: Perl RPC Client
by thanos1983 (Parson) on Mar 16, 2018 at 10:18 UTC |