无法使用python suds将数组作为参数发送

时间:2013-05-20 18:13:09

标签: python-2.7 suds

我正在尝试使用python suds连接到Web服务,目标Web服务方法具有以下输出:

 enqueue(xs:string username, xs:string password, xs:string domain, xs:int msgType, ArrayOf_xsd_string messages, ArrayOf_xsd_string destinations, ArrayOf_xsd_string originators, ArrayOf_xsd_string udhs, ArrayOf_xsd_string mClass, )

例如参数目的地期望传递的字符串数组但我不知道如何使用python list将数组传递给服务

这是我的代码:

    import suds
from suds import * 
from array import *
from string import *

url = "http://somewhere?wsdl"
client = suds.client.Client(url)
#print client 

message = {'test'}



try :
     result = client.service.enqueue("xxx" , "xxx" , "xxx" ,0 , message ,number, orginator , None , None)
except WebFault, e:
    print e

0 个答案:

没有答案