i have this method on my wsdl
<xs:element name="createDocument">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="repositoryId" nillable="true" type="xs:string"/>
<xs:element xmlns:q7="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="properties" nillable="true" type="q7:ArrayOfKeyValueOfstringanyType"/>
<xs:element xmlns:q8="http://docs.oasis-open.org/ns/cmis/core/200908/" minOccurs="0" name="contentStream" nillable="true" type="q8:ContentStream"/>
<xs:element xmlns:q9="http://docs.oasis-open.org/ns/cmis/core/200908/" minOccurs="0" name="versioningState" type="q9:VersioningState"/>
<xs:element xmlns:q10="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="policies" nillable="true" type="q10:ArrayOfstring"/>
</xs:sequence>
</xs:complexType>
</xs:element>
i need to call with python3 zeep library.
this is what i wrote
def test_createDocument():
c_stream = file_to_b64bytes("assets/pdv/packagePdV.zip")
c_length = len(c_stream)
answer = client.service.createDocument(
repositoryId="1",
properties=[
{
"KeyValueOfstringanyType": {
"Key": "PdV_VerificaFirmaFiles",
"Value": False
}
},
{
"KeyValueOfstringanyType": {
"Key": "Firma_OggettiProduttore",
"Value": False
}
}
],
contentStream={
"filename": "packagePdV.zip",
"length": c_length,
"stream": c_stream
}
)
print(answer)
but i got an exception
zeep.exceptions.Fault: The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:properties. The InnerException message was 'Element Value from namespace http://schemas.microsoft.com/2003/10/Serialization/Arrays cannot have child contents to be deserialized as an object. Please use XmlNode[] to deserialize this pattern of XML.'. Please see InnerException for more details.
any suggestion?