You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Vijaya Kumar <nm...@SAMSUNGSDSINDIA.com> on 2002/03/11 10:46:58 UTC

Problem in validating the ebXML message with XSD


Hi all,

i am trying to validate the ebXML message with the XSD.

but i am getting the fallowing Exception

Error:  org.xml.sax.SAXParseException: Value
"http://ebxml.org/project_teams/transport/envelope.xsd" is not valid
schema
Location syntax. anyURI must be followed by schema file
Error:  org.xml.sax.SAXParseException: General Schema Error: Grammar
with uri: http://schemas.xmlsoap.org/soap/envelope/
 , can not be found; schema namespace may be wrong:  Xerces supports
schemas from the "http://www.w3.org/2001/XMLSchema"
 namespace or the instance document's namespace may not match the
targetNamespace of the schema.
Error:  org.xml.sax.SAXParseException: Element type "SOAP-ENV:Envelope"
must be declared.
Error:  org.xml.sax.SAXParseException: Element type "SOAP-ENV:Header"
must be declared.
Error:  org.xml.sax.SAXParseException: The namespace prefix "eb" was not
declared.
Error:  org.xml.sax.SAXParseException: Element type "eb:MessageHeader"
must be declared.
Error:  org.xml.sax.SAXParseException: The namespace prefix "eb" was not
declared.
Error:  org.xml.sax.SAXParseException: The namespace prefix "eb" was not
declared.
....
......
....
and it continues............

is it the problem with my java code or it is problem with the Schema or
Xerces api.

i am attaching the ebXML message and the Java file which i am using for
validation.


thanks and regards
Vijay

 <<SchemaValidate.java>>  <<ebxml.xml>>