I wrote the following xml-schema:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xmlns.oracle.com/cloud/adapter/nxsd/surrogate/request"
xmlns="http://xmlns.oracle.com/cloud/adapter/nxsd/surrogate/request"
elementFormDefault="qualified">
<xs:element name="Building">
<xs:complexType>
<xs:sequence>
<xs:element name="content">
<xs:complexType>
<xs:sequence>
<xs:element name="Floor" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="attribute">
<xs:complexType>
<xs:sequence>
<xs:element name="Address" type="xs:string" />
<xs:element name="Square" type="xs:integer"/>
<xs:element name="Height" type="xs:integer"/>
<xs:element name="Rooms" type="xs:integer" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
However, when running this, it results in an error message Invalid element 'complexType' in 'element'
Does anybody know what's going on here?
UPDATE Here is the error stack trace that I have downloaded from OIC
<Jan 28, 2021, 2:18:47,612 AM UTC> <Error> <oracle.apps.oic.integration.jetmapper> <BEA-000000> <TX_MULTI_ERRORGUI_MM_ERR_SRC_SCHEMA'Invalid element 'complexType' in 'element''>
<Jan 28, 2021, 2:18:47,616 AM UTC> <Error> <oracle.ics.webconsole> <ICS-10064> <An error occurred while preparing mapper object.
oracle.ics.webconsole.common.exception.GeneralException: ICS-10064: An error occurred while preparing mapper object.
at oracle.ics.webconsole.common.orchestrationmodel.TransformerElement.validateModel(TransformerElement.java:194)
at oracle.ics.webconsole.common.orchestrationmodel.OrchestrationModelImpl.validateElements(OrchestrationModelImpl.java:1211)
at oracle.ics.webconsole.common.orchestrationmodel.OrchestrationModelImpl.updateElement(OrchestrationModelImpl.java:1190)
at oracle.ics.webconsole.view.beans.backing.orchestration.ReceiveBeanElement.updateElement(ReceiveBeanElement.java:390)
at oracle.ics.webconsole.view.beans.backing.composer.OrchestrationBean.onConfirmEditAdapter(OrchestrationBean.java:1655)
at oracle.ics.webconsole.view.beans.backing.composer.OrchestrationPageBean.confirmEditAdapter(OrchestrationPageBean.java:1668)
at sun.reflect.GeneratedMethodAccessor6131.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:346)
Caused By: oracle.apps.oic.integration.jetmapper.model.exception.JETMapperExceptionV2: Invalid element 'complexType' in 'element'
at oracle.apps.oic.integration.jetmapper.model.plugin.JETMapperAdapterV2.createJETMapperAdapter(JETMapperAdapterV2.java:552)
at oracle.apps.oic.integration.jetmapper.model.plugin.JETMapperAdapterV2.createJETMapper(JETMapperAdapterV2.java:106)
at oracle.ics.webconsole.common.orchestrationmodel.OrchestrationMapperUtils.createJetMapperAdapter(OrchestrationMapperUtils.java:211)
at oracle.ics.webconsole.common.orchestrationmodel.OrchestrationMapperUtils.validateMapper(OrchestrationMapperUtils.java:231)
at oracle.ics.webconsole.common.orchestrationmodel.TransformerElement.validateModel(TransformerElement.java:167)
at oracle.ics.webconsole.common.orchestrationmodel.OrchestrationModelImpl.validateElements(OrchestrationModelImpl.java:1211)
at oracle.ics.webconsole.common.orchestrationmodel.OrchestrationModelImpl.updateElement(OrchestrationModelImpl.java:1190)
at oracle.ics.webconsole.view.beans.backing.orchestration.ReceiveBeanElement.updateElement(ReceiveBeanElement.java:390)
at oracle.ics.webconsole.view.beans.backing.composer.OrchestrationBean.onConfirmEditAdapter(OrchestrationBean.java:1655)
at oracle.ics.webconsole.view.beans.backing.composer.OrchestrationPageBean.confirmEditAdapter(OrchestrationPageBean.java:1668)
at sun.reflect.GeneratedMethodAccessor6131.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3688)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3654)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:328)
at weblogic.security.service.SecurityManager.runAsForUserCode(SecurityManager.java:197)
at weblogic.servlet.provider.WlsSecurityProvider.runAsForUserCode(WlsSecurityProvider.java:203)
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:71)
at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2433)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2281)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2259)
at weblogic.servlet.internal.ServletRequestImpl.runInternal(ServletRequestImpl.java:1692)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1652)
at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:272)
at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:348)
at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:333)
at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:54)
at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:640)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:406)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:346)
Your XSD as posted has no such error. Suspect a mistake in how you're invoking validation.
ICS-10064
isn't in Oracle Cloud: Error Messages for Oracle Integration. If your invocation is correct, next try updating to see if an Oracle issue has been since resolved.