Found the problem! my url was simply wrong. :(
In the call bellow:
RPCServer = ServerProxy('http://myapp.appspot.com/welcome/default/
index/call/xmlrpc<http://myapp.appspot.com/welcome/default/%0Aindex/call/xmlrpc>
')the "welcome" should be "myapp" (and no "index" is needed). So the proper url is: 'http://myApp.appspot.com/myApp/default/call/xmlrpc' -Miguel On Mon, Sep 6, 2010 at 10:38 PM, Miguel <[email protected]> wrote: > Hi > > I have a function exposed as a xmlrpc service. > It works perfectly in the dev gae local server but once I deployed my > application to the live servers I get the following error when I try > to call it: > > RPCServer.AddProducts("apps",data) > > Traceback (most recent call last): > File "C:\chilkat\crawl.py", line 218, in <module> > processFeed(dta) > File "C:\chilkat\crawl.py", line 194, in processFeed > print RPCServer.AddProducts("apps",data) > File "C:\Python25\lib\xmlrpclib.py", line 1147, in __call__ > return self.__send(self.__name, args) > File "C:\Python25\lib\xmlrpclib.py", line 1437, in __request > verbose=self.__verbose > File "C:\Python25\lib\xmlrpclib.py", line 1201, in request > return self._parse_response(h.getfile(), sock) > File "C:\Python25\lib\xmlrpclib.py", line 1335, in _parse_response > p.feed(response) > File "C:\Python25\lib\xmlrpclib.py", line 547, in feed > self._parser.Parse(data, 0) > xml.parsers.expat.ExpatError: mismatched tag: line 103, column 4 > > > I simplified the function to point it does nothing but return a > string: > > @service.xmlrpc > def AddProducts(mediaType, data): > return "in your dreams" > > At first I thought it was the parameters I was passing to the > function, but I get the same error when trying to call the following > function: > > @service.xmlrpc > def DelProducts(): > return db(db.products.id>0).delete() > > So this indicates the xmlrpc call itself is failling on GAE! Here is > how I make the call: > > RPCServer = ServerProxy('http://myapp.appspot.com/welcome/default/ > index/call/xmlrpc<http://myapp.appspot.com/welcome/default/%0Aindex/call/xmlrpc> > ') > RPCServer.DelProducts() > > > What am I missing? Did anybody manage to run xmlrpc on GAE? > > thanks > Miguel > > >

