XMLRPC - C Client / Python Server

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • care02@gmail.com

    XMLRPC - C Client / Python Server

    I have implemented a simple Python XMLRPC server and need to call it
    from a C/C++ client. What is the simplest way to do this? I need to
    pass numerical arrays from C/C++ to Python.

    Yours, Carl
  • Chris Rebert

    #2
    Re: XMLRPC - C Client / Python Server

    On Tue, Sep 30, 2008 at 8:05 AM, <care02@gmail.c omwrote:
    I have implemented a simple Python XMLRPC server and need to call it
    from a C/C++ client. What is the simplest way to do this? I need to
    pass numerical arrays from C/C++ to Python.
    If you just googled for "xmlrpc c", you would've found
    http://xmlrpc-c.sourceforge.net/ , which appears to be the best (and
    possibly only) option for this.
    Also, this isn't really Python-related if you think about it.

    Regards,
    Chris
    --
    Follow the path of the Iguana...

    Comment

    • Michael Torrie

      #3
      Re: XMLRPC - C Client / Python Server

      care02@gmail.co m wrote:
      I have implemented a simple Python XMLRPC server and need to call it
      from a C/C++ client. What is the simplest way to do this? I need to
      pass numerical arrays from C/C++ to Python.
      Which do you need, C or C++? They are two different languages with
      different possibilities for libraries.

      As the other poster mentioned, xmlrpc-c is a good one for C, and also
      comes with bindings for C++ which I have used. Getting xmlrpc-c
      compiled can be a real challenge though. I recommend you use binary
      packages for your distribution of Linux. If you need it on Win32, then
      you'll have to spend a day or two figuring out how to build it on
      Windows. I eventually got the both the C and C++ client library built
      in Mingw with libcurl as the transport. But it was a real pain.

      Comment

      • care02@gmail.com

        #4
        Re: XMLRPC - C Client / Python Server

        On 30 Sep, 21:58, Michael Torrie <torr...@gmail. comwrote:
        car...@gmail.co m wrote:
        I have implemented a simple Python XMLRPC server and need to call it
        from a C/C++ client. What is the simplest way to do this? I need to
        pass numerical arrays from C/C++ to Python.
        >
        Which do you need, C or C++?  They are two different languages with
        different possibilities for libraries.
        >
        As the other poster mentioned, xmlrpc-c is a good one for C, and also
        comes with bindings for C++ which I have used.  Getting xmlrpc-c
        compiled can be a real challenge though.  I recommend you use binary
        packages for your distribution of Linux.  If you need it on Win32, then
        you'll have to spend a day or two figuring out how to build it on
        Windows.  I eventually got the both the C and C++ client library built
        in Mingw with libcurl as the transport.  But it was a real pain.
        My problem is that I need xmlrpc-c (preferably the C++ bindings) on
        windows. I have just started to build xmlrpc-c on windows, but no
        success yet, seems to be quite troublesome. Are there any other xmlrpc
        libraries for C/C++ around with prebuilt binaries that work in a
        client/server configuration with Python as a xmlrpc server?

        Carl

        Carl

        Comment

        • Chris Rebert

          #5
          Re: XMLRPC - C Client / Python Server

          On Wed, Oct 1, 2008 at 1:05 AM, <care02@gmail.c omwrote:
          On 30 Sep, 21:58, Michael Torrie <torr...@gmail. comwrote:
          >car...@gmail.c om wrote:
          I have implemented a simple Python XMLRPC server and need to call it
          from a C/C++ client. What is the simplest way to do this? I need to
          pass numerical arrays from C/C++ to Python.
          >>
          >Which do you need, C or C++? They are two different languages with
          >different possibilities for libraries.
          >>
          >As the other poster mentioned, xmlrpc-c is a good one for C, and also
          >comes with bindings for C++ which I have used. Getting xmlrpc-c
          >compiled can be a real challenge though. I recommend you use binary
          >packages for your distribution of Linux. If you need it on Win32, then
          >you'll have to spend a day or two figuring out how to build it on
          >Windows. I eventually got the both the C and C++ client library built
          >in Mingw with libcurl as the transport. But it was a real pain.
          >
          My problem is that I need xmlrpc-c (preferably the C++ bindings) on
          windows. I have just started to build xmlrpc-c on windows, but no
          success yet, seems to be quite troublesome. Are there any other xmlrpc
          libraries for C/C++ around with prebuilt binaries that work in a
          client/server configuration with Python as a xmlrpc server?
          The whole point of XML-RPC is to be language-neutral, so the "with
          Python" part of your requirements is superfluous.
          On that note, you might want to try asking in a newsgroup/mailinglist
          that's more XML-RPC or Windows or C(++) specific.

          Cheers,
          Chris
          --
          Follow the path of the Iguana...

          Comment

          Working...