[Zope] Problems using zope as a xml-rpc server
Juan Carlos Coruņa
jcoruna@umd.es
Fri, 16 Jun 2000 12:02:19 GMT
--------------=_4D4800D5F4F901891164
Content-Description: filename="text1.txt"
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hello Zopistas,
I'm trying to implement a xml-rpc server with zope.
If I try to retrieve a default =93index_html=94 from python with xmlrpcl=
ib=20
there is no problem, but if I try to retrieve a dtml method with a=20
zsql method inside it responds: xmlrpclib.ProtocolError:=20
<ProtocolError for ntserver:8080/RPC2: 401 Unauthorized>.
I test the BasicAuthTransport class from the =93XML-RPC How To=94, but i=
t=20
crashes with error: NameError: encodestring.
After this I changed encodestring with base64.encodestring, the same=20=
result (Unauthorized).
Any ideas?
Thanks in advance.
--------------=_4D4800D5F4F901891164
Content-Description: filename="text1.html"
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>Problems using zope as a xml-rpc server</TITLE>
<META NAME=3D"GENERATOR" CONTENT=3D"StarOffice/5.1 (Win32)">
<META NAME=3D"CREATED" CONTENT=3D"20000616;13494144">
<META NAME=3D"CHANGEDBY" CONTENT=3D"Juan Carlos Coruña">
<META NAME=3D"CHANGED" CONTENT=3D"20000616;14021892">
</HEAD>
<BODY>
<P>Hello Zopistas,</P>
<P><BR><BR>
</P>
<P>I'm trying to implement a xml-rpc server with zope.</P>
<P>If I try to retrieve a default “index_html” from python
with xmlrpclib there is no problem, but if I try to retrieve a dtml
method with a zsql method inside it responds: xmlrpclib.ProtocolError:
<ProtocolError for ntserver:8080/RPC2: 401 Unauthorized>.</P>
<P><BR><BR>
</P>
<P>I test the BasicAuthTransport class from the “XML-RPC How To=
8;,
but it crashes with error: NameError: encodestring.</P>
<P><BR><BR>
</P>
<P>After this I changed encodestring with base64.encodestring, the same=
result (Unauthorized).</P>
<P><BR><BR>
</P>
<P>Any ideas?</P>
<P>Thanks in advance.</P>
</BODY>
</HTML>
--------------=_4D4800D5F4F901891164--