python-zeep icon indicating copy to clipboard operation
python-zeep copied to clipboard

AnyObject at runtime

Open jburgas opened this issue 8 months ago • 0 comments

Hi ,

First of all thanks for this complete library to make SOAP calls with Python. My problem is that when ZEEP render and object as AnyType. In the WSDL the specification is this:

<xs:element name="SolicitudTransmision"> xs:complexType xs:all <xs:element ref="DatosGenericos"/> <xs:element name="DatosEspecificos" type="xs:anyType" minOccurs="0"/> </xs:all> </xs:complexType> </xs:element>

At runtime, "Specific Data" can be of different types, but ZEEP does not get the appropriate type. And finally render the string represantation of object:

ns1:DatosEspecificos<Shared.caoc_extensions_1_0.ExtensionesPeticion object at 0x000002837FF0EBF0></ns1:DatosEspecificos>

I have tried to send the XML rendering of the specific object directly in this section instead of instance class but ZEEP replaces the < character with the equivalent html code <. I am sure the problem is mine when defining the object but right now I do not know how to solve it. Help please?

Thanks in advance, Jordi

jburgas avatar Feb 27 '25 17:02 jburgas