T
tsjuan
Hello python users,
I am just learning on how to use xmlrpc and stumbled upon how to pass
com object
from server to client side.
The client side complain about can't marshall the com object. I don't
know what type
of marshall command I should use to pass the object.
Below are my scripts, any help / comments are greatly appreciated:
# Server Side script
# ===============
import win32com.client
import SimpleXMLRPCServer
import pythoncom
class ServerFunctions(object):
def call_com_object(self):
pythoncom.CoInitialize()
return win32com.client.Dispatch('excel.application')
if __name__ == '__main__'
server =
SimpleXMLRPCServer.SimpleXMLROCServer(('hostname',portnumber))
server.register_instance(ServerFunctions())
# Client Side Script
# ==============
import xmlrpclib
client = xmlrpclib.Server('http://hostname:portname")
excel_object = client.call_com_object()
Regards,
Tanto Sugiarto
I am just learning on how to use xmlrpc and stumbled upon how to pass
com object
from server to client side.
The client side complain about can't marshall the com object. I don't
know what type
of marshall command I should use to pass the object.
Below are my scripts, any help / comments are greatly appreciated:
# Server Side script
# ===============
import win32com.client
import SimpleXMLRPCServer
import pythoncom
class ServerFunctions(object):
def call_com_object(self):
pythoncom.CoInitialize()
return win32com.client.Dispatch('excel.application')
if __name__ == '__main__'
server =
SimpleXMLRPCServer.SimpleXMLROCServer(('hostname',portnumber))
server.register_instance(ServerFunctions())
# Client Side Script
# ==============
import xmlrpclib
client = xmlrpclib.Server('http://hostname:portname")
excel_object = client.call_com_object()
Regards,
Tanto Sugiarto