您可以使用来访问参数元素
operation.input.body.type.elements,后者是包含元素对象的元组列表。这些对象包含诸如类型之类的信息。
(Pdb) operation.input.body.type.elements[('MarketplaceDomain', <Element(name='MarketplaceDomain', type=<zeep.xsd.types.builtins.String object at 0x7f1bd8a4b320>)>), ('AWSAccessKeyId', <Element(name='AWSAccessKeyId', type=<zeep.xsd.types.builtins.String object at 0x7f1bd8a4b320>)>), ('AssociateTag', <Element(name='AssociateTag', type=<zeep.xsd.types.builtins.String object at 0x7f1bd8a4b320>)>), ('Validate', <Element(name='Validate', type=<zeep.xsd.types.builtins.String object at 0x7f1bd8a4b320>)>), ('XMLEscaping', <Element(name='XMLEscaping', type=<zeep.xsd.types.builtins.String object at 0x7f1bd8a4b320>)>), ('Shared', <Element(name='Shared', type=<zeep.xsd.dynamic_types.BrowseNodeLookupRequest object at 0x7f1bd8177e48>)>), ('Request', <Element(name='Request', type=<zeep.xsd.dynamic_types.BrowseNodeLookupRequest object at 0x7f1bd8177e48>)>)](Pdb) operation.input.body.type.elements[0][1].name'MarketplaceDomain'(Pdb) operation.input.body.type.elements[0][1].type.name'string'(Pdb) operation.input.body.type.elements[0][1].is_optionalTrue
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)