This looks like a variation of https://issues.jboss.org/browse/TEIIDDES-1436
Unfortunately based upon that issue any attempt at hand modification of namespaces not backed by what Designer believes to be the XSDs (which as you show did not import correctly initially) will not work.
I am trying to reproduce your error. Can you please give me more details about the REST service you have implemented on top of the document model? Here is the related Jira: https://issues.jboss.org/browse/TEIIDDES-1633. Feel free to add any helpful artifacts or comments there.
The REST services are very simple. Only “GET” Methods which will query the XML Document model based on parameters passed to the URI.
Following is an example of Response mismatch:
In both the cases, same XML schemas were used, but in case of Teiid we are missing the namespace prefix in the child element (REFERENCE_DATA).
It seems to be problem with the Teiid as it is not importing the namespace prefixes for the child nodes in the XML document model.
Please let me know if you need more details.