Hey, I am trying to get a laszlo script to talk to a python backend over xml rpc. Somehow i cant seem to get it working, my backend spews the following when a connection attempt is made from the laszlo script. Shouldnt this be RPC2 HTTP instead?
localhost.localdomain - - [15/Oct/2006 23:40:24] "POST / HTTP/1.1" 200 - My laszlo script looks something like this, <xmlrpc name="meerkat" service="http://localhost:8888"> <handler name="ondata" args="data"> Debug.write('got data:', data); </handler> <remotecall name="gc" funcname="meerkat.getMonth()" /> </xmlrpc> And the python server looks like this. class Calendar: def getMonth(self): return "hello world" calendar_object = Calendar() server = SimpleXMLRPCServer.SimpleXMLRPCServer(("localhost", 8888)) server.register_instance(calendar_object) #Go into the main listener loop print "Listening on port 8888" server.serve_forever() The laszlo script says "meerkat.getMonth()" is not supported. I am running as a proxy, as required for xml-rpc I am quite new to OpenLaszlo, and i searched the archives a bit before posting, so sorry if the question is silly or already answered. Thanks a lot Cheers, Shreyas -- CelAbrate your flaws _______________________________________________ Laszlo-user mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-user
