所以我在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以便我的客户机不会将它转换为空字符串吗?在
如果日期字段是可选的,您应该完全跳过它,并且根本不尝试传递任何值(即使它被设置为NoneType)。在
相关问题 更多 >
编程相关推荐