OSB: strict xsd validation
895634Oct 21 2011 — edited Oct 24 2011Hi guys,
I'm trying to validate an XML inside the OSB with this schema:
...
<xsd:complexType name="GenericMessage">
<xsd:sequence>
<xsd:element name="generic_header" type="gm:GenericHeader">
</xsd:element>
<xsd:any maxOccurs="unbounded">
</xsd:any>
</xsd:sequence>
</xsd:complexType>
...
and the message:
...
xmlns:doc="http://www.namespaces.com/schema/Document/v1"
....
<gm:generic_header>
....
</gm:generic_header>
<doc:document>
...
</doc:document >
....
I can validate this message with the Oracle Workshop but when I send it to the OSB I always get this error:
Element not allowed (strict wildcard, and no definition found): document@http://www.namespaces.com/schema/Document/v1
I thought that maybe it weren't finding the schemaLocation so I tried to add it as a relative and/or absolute url:
schemaLocation=” http://www.namespaces.com/schema/Document/v1 http://localhost:7010/sbresource?SCHEMA/...../Document” (this address works in a browser)
But it didn't work either.
Do you know if there is a bug or what I'm doing wrong?
PS: I can't change the strict any element to a lax one.
Thank you!
Edited by: user10791025 on 21-oct-2011 2:46