【发布时间】:2015-12-30 21:18:41
【问题描述】:
所以我在 python3 中使用 suds-jurko,我的请求中有这样的值:
`Date = None`
日期不是必填字段。我遇到的问题是当它处理请求时,我得到了错误:
WebFault: Server raised fault: 'The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://webservices.soapclient.com/v11:request. The InnerException message was 'There was an error deserializing the object of type WebServices.Posting.Request. The value '' cannot be parsed as the type 'DateTime'.'. Please see InnerException for more details.'
任何线索我可以传递一个有效的 NoneType 以便我的客户不会将其转换为空字符串?
【问题讨论】:
标签: c# python web-services soap