you can query the factory constructor for the method and use the children () method to view its parameters.
For example, for this method I have wsdl:
<complexType name="AddAuthorizationRoleRequestType"> <sequence> <element name="_this" type="vim25:ManagedObjectReference" /> <element name="name" type="xsd:string" /> <element name="privIds" type="xsd:string" minOccurs="0" maxOccurs="unbounded" /> </sequence> </complexType>
I can get the attributes via:
>>> a=client.factory.resolver.find("ns0:AddAuthorizationRoleRequestType") >>> priv_el=a.children()[2][0] <Element:0x107591a10 name="privIds" type="(u'string', u'http://www.w3.org/2001/XMLSchema')" /> >>> priv_el = a.children()[2][0] >>> priv_el.max unbounded >>> priv_el.min 0
not very elegant but it works
Samuel devlin
source share