My bad. uploaded an old version. Uploading the most updated version in
trunk now.

On Mar 8, 3:44 pm, Fran <[email protected]> wrote:
> On Mar 8, 7:32 pm, mdipierro <[email protected]> wrote:
>
> > Try this default.py
>
> Thanks:
>
> >>> server=xmlrpclib.ServerProxy('http://127.0.0.1:8000/welcome/call/xmlrpc')
> >>> print server.add(3,4)
>
> Traceback (most recent call last):
>   File "<console>", line 1, in <module>
>   File "c:\bin\python25\lib\xmlrpclib.py", line 1147, in __call__
>     return self.__send(self.__name, args)
>   File "c:\bin\python25\lib\xmlrpclib.py", line 1437, in __request
>     verbose=self.__verbose
>   File "c:\bin\python25\lib\xmlrpclib.py", line 1191, in request
>     headers
> ProtocolError: <ProtocolError for 127.0.0.1:8000/welcome/call/xmlrpc:
> 400 BAD REQUEST>>>>> 
> server=xmlrpclib.ServerProxy('http://127.0.0.1:8000/welcome/default/call/xmlrpc')
> >>> print server.add(3,4)
>
> Traceback (most recent call last):
>   File "<console>", line 1, in <module>
>   File "c:\bin\python25\lib\xmlrpclib.py", line 1147, in __call__
>     return self.__send(self.__name, args)
>   File "c:\bin\python25\lib\xmlrpclib.py", line 1437, in __request
>     verbose=self.__verbose
>   File "c:\bin\python25\lib\xmlrpclib.py", line 1201, in request
>     return self._parse_response(h.getfile(), sock)
>   File "c:\bin\python25\lib\xmlrpclib.py", line 1340, in
> _parse_response
>     return u.close()
>   File "c:\bin\python25\lib\xmlrpclib.py", line 785, in close
>     raise ResponseError()
> ResponseError: ResponseError()
>
> Trying same URL via the web browser:
> Traceback (most recent call last):
>   File "C:\Bin\web2py\gluon\restricted.py", line 98, in restricted
>     exec ccode in environment
>   File "C:/Bin/web2py/applications/welcome/controllers/default.py",
> line 26, in <module>
>   File "C:\Bin\web2py\gluon\globals.py", line 75, in <lambda>
>     self._caller = lambda f: f()
>   File "C:/Bin/web2py/applications/welcome/controllers/default.py",
> line 24, in call
>     return service()
>   File "C:\Bin\web2py\gluon\tools.py", line 1704, in __call__
>     return self.serve_xmlrpc()
>   File "C:\Bin\web2py\gluon\tools.py", line 1646, in serve_xmlrpc
>     services = xmlrpc_services.values()
> NameError: global name 'xmlrpc_services' is not defined
>
> F
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to