Write XML-RPC in C# and using it from Python
<p>I have a C# XML-RPC code and I want to use it from Python, is there a capability to 
implement that?</p>

<p>this is my code
 in C#
  1- dll file</p>

<pre><code>public class Search:MarshalByRefObject
 {
     public string GetAllFiles()
     {
         return ("hhhhhhiiiiiiiiiii");
     }

 }
</code></pre>

<p>2- to register method</p>

<pre><code>private void button1_Click(object sender, EventArgs e)
        {
            ChannelServices.RegisterChannel(new TcpChannel(6600));
            RemotingConfiguration.RegisterWellKnownServiceType(
            Type.GetType("Search,Search"), "MySearchServer", WellKnownObjectMode.SingleCall);
        }
</code></pre>

<p>in python</p>

<pre><code> s = ServerProxy('http://localhost:6600')  
  print(s.GetAllFiles())
</code></pre>

<p>when I execute it, I get the following error</p>

<blockquote>
  <p>Traceback (most recent call last):<br>
  File "D:\RemotingF\rpc1.py", line 17,
  in Listen
      print(s.GetAllFiles())   File "C:\Python27\lib\xmlrpclib.py", line
  1224, in <strong>call</strong>
      return self._<em>send(self.</em>_name, args)   File
  "C:\Python27\lib\xmlrpclib.py", line
  1570, in _<em>request
      verbose=self.</em>_verbose   File "C:\Python27\lib\xmlrpclib.py", line
  1264, in request
      return self.single_request(host, handler, request_body, verbose)   File
  "C:\Python27\lib\xmlrpclib.py", line
  1297, in single_request
      return self.parse_response(response)   File
  "C:\Python27\lib\xmlrpclib.py", line
  1462, in parse_response
      p.feed(data)   File "C:\Python27\lib\xmlrpclib.py", line
  557, in feed
      self._parser.Parse(data, 0) xml.parsers.expat.ExpatError: not
  well-formed (invalid token): line 1,
  column 4</p>
</blockquote>

<p>anyone help me
thanks</p>
