blackfriday13 2018年01月26日
关于python客户端操作wdsl时ns4:ArrayOfString的值该怎么传入
aSP里
gatewayId = Client.Sms.SendMessage3(Array("1手机号0"), "asp测试", "5", "用户名", "密码")
php里
gatewayId = Client.Sms.SendMessage3(Array("1手机号0"), "asp测试", "5", "用户名", "密码")


python里没有好像没有array()函数,不知道该怎么传入
arr=['1手机号']
把arr,arr[0]传进去不行,
import array
arr=['b','15088256320'],arr=array.array('i',[1,手机号,0])
arr=array.array('B','1手机号0')都不行

the formatter throw out an exception while tring to desiraliza the message, destinationAddress

引用
Suds ( https://fedorahosted.org/suds/ ) version: 0.4 GA build: R699-20100913

Service ( MmsImplementation ) tns="http://tempuri.org/"
Prefixes (5)
ns0 = "http://openmas.chinamobile.com/mms"
ns1 = "http://schemas.datacontract.org/2004/07/OpenMas"
ns2 = "http://schemas.datacontract.org/2004/07/System"
ns3 = "http://schemas.microsoft.com/2003/10/Serialization/"
ns4 = "http://schemas.microsoft.com/2003/10/Serialization/Arrays"
Ports (1):
(BasicHttpBinding_IMms)
Methods (6):
AddTask3(ns1:PeriodType periodType, ns1:PeriodValue periodValue, ns1:PeriodTime periodTime, ns4:ArrayOfstring destinationAddresses, xs:string subject, xs:string content, xs:string extendCode, xs:string applicationId, xs:string password, )
AddTask4(ns1:PeriodType periodType, ns1:PeriodValue periodValue, ns1:PeriodTime periodTime, ns4:ArrayOfstring destinationAddresses, xs:string subject, xs:string content, xs:string extendCode, xs:string applicationId, xs:string password, xs:dateTime beginTime, xs:dateTime endTime, )
GetMessage(xs:string messageId, )
RemoveTask(xs:string taskId, )
SendMessage3(ns4:ArrayOfstring destinationAddresses, xs:string subject, xs:string content, xs:string extendCode, xs:string applicationId, xs:string password, )
SendMessage4(ns4:ArrayOfstring destinationAddresses, xs:string subject, xs:string content, xs:string extendCode, xs:string applicationId, xs:string password, xs:dateTime expectSendTime, )
Types (10):
ns4:ArrayOfstring
ns2:DayOfWeek
ns1:MmsMessage
ns1:PeriodTime
ns1:PeriodType
ns1:PeriodValue
ns1:Priority
ns3:char
ns3:duration
ns3:guid

suds.WebFault: Server raised fault: 'The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter

...全文
709 点赞 收藏 12
写回复
12 条回复

还没有回复,快来抢沙发~

发动态
发帖子
脚本语言(Perl/Python)
创建于2007-08-27

1.5w+

社区成员

3.3w+

社区内容

其他开发语言 脚本语言(Perl ,Python)
社区公告
暂无公告