I'm not sure how the twisted web server works (I'm a new guy around here!), but it looks like your dictionary, pages, maps url's to callables.  But MyConverterXMLRPCClass() is an instance, that is not callable (no __call__ method).  I think what you want to do is something like this ->
<br><br> &#39;/xmlrpc_converter&#39;: MyConverterXMLRPCClass().xmlrpc_mymethod1<br><br>^^ Should get you past the __call__ error you&#39;re getting.<br><br>HTH!<br>jw<br><br><div><span class="gmail_quote">On 7/6/07, <b class="gmail_sendername">
Daniel de la Cuesta</b> &lt;<a href="mailto:daniel.cuesta@iavante.es">daniel.cuesta@iavante.es</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



  

<div bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
I have a twisted web server running using &quot;twisted.web.http&quot;.<br>
<br>
The objective of the server is to convert files to another format.
Currently I upload the files and the conversion params using an HTTP
POST from a form.<br>
<br>
Now I want to add XML-RPC support to the conversion process. It means
the user could process the conversion using the http form or calling
directly the XML-RPC class.<br>
<br>
This is my pages dispatch:<br>
<br>
class MyRequestHandler(http.Request):<br>
<br>
&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; pages = { &#39;/&#39; : loginPage, <br>
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;/uploadHandler&#39; : handleUpload,<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;/uploadform&#39; : uploadForm,<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;/xmlrpc_converter&#39;: MyConverterXMLRPCClass() }<br>
<br>
What I want to do is offer the user two possibilities to upload the
file, one of them using HTTP POST (calling to &quot;uploadform&quot;) and the
other using XML-RPC (caling to xmlrpc_converter).<br>
<br>
I have tried to implement MyConverterXMLRPCClass() as follows:<br>
<br>
MyConverterXMLRPCClass(xmlrpc.XMLRPC):<br>
&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; def __init(self):<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;&quot;&quot;&quot;&quot;&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pass<br>
<br>
&nbsp;&nbsp;&nbsp; def xmlrpc_mymethod1(self, param)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;&quot;&quot;My process&quot;&quot;<br>
<br>
But It down&#39;t work, when I try <a href="http://localhost:8000/xmlrpc_converter" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://localhost:8000/xmlrpc_converter</a> I
get the following error:<br>
<br>
&quot;MyConverterXMLRPCClass instance has no __call__ method&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
How can I call MyConverterXMLRPCClass from an url in my http server?<br>
<br>
Thank you.<br>
&nbsp; <br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; <br>
<div>-- <br>

<p align="left"><span lang="es"><b><font color="#808080" face="RotisSemiSans">Daniel de la Cuesta Navarrete</font></b></span> <br>
<span lang="es"><b><font color="#808080" face="RotisSemiSans">Técnico
de Desarrollo de Software</font></b></span></p>
<p align="left"><span lang="es"></span><span lang="es"><font color="#339966" face="IAVANTE" size="4">FUNDACIÓN IAVANTE</font></span>
<br>
<span lang="es"><font color="#339966" face="RotisSemiSans"><a href="mailto:daniel.cuesta@iavantefundacion.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">daniel.cuesta@iavantefundacion.com</a>
</font></span>
<br>
<span lang="es"><font color="#339966" face="RotisSemiSans">Tel. 951 015
300</font></span> </p>
<br>
<p align="center"><span lang="es"><font color="#999999" face="Verdana" size="1">Este correo electrónico y, en su caso, cualquier fichero
anexo, contiene información confidencial exclusivamente dirigida a
su(s) destinatario(s). Toda copia o divulgación deberá ser autorizada
por IAVANTE.</font></span></p>
<p align="center"><span lang="en-gb"><font color="#999999" face="Verdana" size="1">This e-mail and any attachments are
confidential and exclusively directed to its adressee(s). Any copy or
distribution will have to be authorized by IAVANTE.</font></span></p>
<br>
</div>
</div>


<br>_______________________________________________<br>Twisted-Python mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a>
<br><br></blockquote></div><br><br clear="all"><br>-- <br>&quot;Government does not solve problems; it subsidizes them.&quot;<br>Ronald Reagan