Ladon
from ladon.ladonizer import ladonizefrom ladon.types.ladontype import LadonTypeclass Calculator(object): class Table(LadonType): slno = int colTitle = str colSize = int colAlign = str @ladonize([Table],rtype=int) #notice the [], around table that means the input will be a list of Table LadonTypes. def setTables(self,tables): return len(tables)
Suds
from suds.client import Clientclient = Client('http://localhost:8888/Calculator/soap/description')table = client.factory.create('Table')table.slno = 1table.colTitle = 'col1'table.colSize = 10table.colAlign = 'L'table2 = client.factory.create('Table')table2.slno = 2table2.colTitle = 'col2'table2.colSize = 15table2.colAlign = 'L'tableList = [table, table2]print client.service.setTables(tableList)