Hello, We are facing an issue where in export to XML is working as expected but import from the same XML is not working when the root element is a generalized entity. Scenario: We have an entity called 'Person' and a specialized entity called 'Employee' Schema: <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.example.com/" targetNamespace="http://www.example.com/"> <xs:element name="Person" type="ns1:Person"/> <xs:complexType name="Person"> <xs:sequence> <xs:element name="Name" type="xs:string" minOccurs="0" maxOccurs="1"/> </xs:sequence> </xs:complexType> <xs:complexType name="Employee"> <xs:complexContent> <xs:extension base="ns1:Person"> <xs:sequence> <xs:element name="EmployeeID" type="xs:int" minOccurs="0" maxOccurs="1"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> </xs:schema> Export XML: <ns1:Person xmlns:ns1="http://www.example.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns1:Employee"> <Name>John Doe</Name> <EmployeeID>1</EmployeeID> </ns1:Person> Import XML: Empty object Its supposed to create Person entity of type employee but no object is created. Please let me know if I am doing something wrong. Thanks.
This was a problem that was fixed in Mendix 7.7
The release notes of Mendix 7.7 say: "We fixed the result of an import action where the root of the import mapping is an (inheritance) element. This no longer gives an empty result."
I tried out your example in Mendix 7.7, and it works.
Do you tested the webservice if the answer of the webservice call is correct?