I need to return a base64Binary to the client application, and I could only return "str" and "int" in "returns" parameter of "register_function" function.
I tried:
from SimpleXMLRPCServer import SimpleXMLRPCServer
dispatcher = .....
base64Binary = base64.b64encode
dispatcher.register_function('fala', speech, args={'frase': str}, returns={'mp3': base64Binary})
and I get:
TypeError: unknonw type <function b64encode at 0x7f15a93c4dc0> for marshalling
I need produce the xsd:base64Binary type in the resulting xml.
out :
and :
out :