Hello Monks,

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?


In reply to Perl RPC Client by Mj1234

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.