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 SimpleXMLRPCSer ver
import pythoncom
class ServerFunctions (object):
def call_com_object (self):
pythoncom.CoIni tialize()
return win32com.client .Dispatch('exce l.application')
if __name__ == '__main__'
server =
SimpleXMLRPCSer ver.SimpleXMLRO CServer(('hostn ame',portnumber ))
server.register _instance(Serve rFunctions())
# Client Side Script
# ==============
import xmlrpclib
client = xmlrpclib.Serve r('http://hostname:portna me")
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 SimpleXMLRPCSer ver
import pythoncom
class ServerFunctions (object):
def call_com_object (self):
pythoncom.CoIni tialize()
return win32com.client .Dispatch('exce l.application')
if __name__ == '__main__'
server =
SimpleXMLRPCSer ver.SimpleXMLRO CServer(('hostn ame',portnumber ))
server.register _instance(Serve rFunctions())
# Client Side Script
# ==============
import xmlrpclib
client = xmlrpclib.Serve r('http://hostname:portna me")
excel_object = client.call_com _object()
Regards,
Tanto Sugiarto
Comment