首页 > 解决方案 > How to specify type when using zeep

问题描述

WSDL defines an element as follows

<xs:element minOccurs="0" name="address" nillable="true" type="q146:Address"/>

My zeep request is as follows client.service.UpdateAddressDetails(address='sample@sample.com')

But I am getting

Missing element type (UpdateAddressDetails.address.type)

From what i know i need to specify the type for this field. How can I do it, I have come across this zeep documentation but nothing clicked

标签: pythondjangozeep

解决方案


您是否尝试过在地址参数中使用大写“A”:

client.service.UpdateAddressDetails(Address='sample@sample.com')

推荐阅读