[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: [ebxml-dev] FW: Problem in validating the ebXML message with XSD
-----Original Message----- From: Vijaya Kumar Sent: Monday, March 11, 2002 3:17 PM To: xerces-j-user@xml.apache.org; xerces-j-dev@xml.apache.org Cc: sandygao@ca.ibm.com; Neeraj.Bajaj@Sun.COM; neilg@ca.ibm.com; chad.thompson@e-markets.com; apache@mienterprise.com; mschneller@swissonline.ch; ebxml-msg@lists.oasis-open.org; firefly@us.ibm.com; ebxml-dev@lists.oasis-open.org; ebxml-dev-digest@lists.oasis-open.org Subject: 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>>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ebxml.org/project_teams/transport/envelope.xsd"> <SOAP-ENV:Header> <eb:MessageHeader SOAP-ENV:mustUnderstand="1" eb:version="1.0"> <eb:From> <eb:PartyId eb:type="s">PARTY0006</eb:PartyId> </eb:From> <eb:To> <eb:PartyId eb:type="s">PARTY0345</eb:PartyId> </eb:To> <eb:CPAId>CPA003</eb:CPAId> <eb:ConversationId>20020308-132834839</eb:ConversationId> <eb:Service eb:type="S">Soft. Designing</eb:Service> <eb:Action>Hello</eb:Action> <eb:MessageData> <eb:MessageId>20020308-13283519-31@vijay.SAMSUNGSDSINDIA.COM</eb:MessageId> <eb:Timestamp>2002-03-08T13:28:35Z</eb:Timestamp> <eb:TimeToLive>11:40</eb:TimeToLive> </eb:MessageData> <eb:QualityOfServiceInfo eb:deliveryReceiptRequested="Signed" eb:deliverySemantics="OnceAndOnlyOnce" eb:messageOrderSemantics="Guaranteed"/> <eb:SequenceNumber eb:status="Reset">0</eb:SequenceNumber> <eb:Description xml:lang="en-us">Purchase Order</eb:Description> </eb:MessageHeader> <eb:TraceHeaderList SOAP-ENV:actor="http://schemas.xmlsoap.org/soap/actor/next" SOAP-ENV:mustUnderstand="1" eb:id="Thlist001" eb:version="1.0"> <eb:TraceHeader> <eb:Receiver> <eb:PartyId eb:type="s">PARTY0345</eb:PartyId> <eb:Location>http://vishwa:7001/TRPReceivingMSH</eb:Location> </eb:Receiver> <eb:Timestamp>2002-03-08T13:28:35Z</eb:Timestamp> <eb:Sender> <eb:PartyId eb:type="s">PARTY0006</eb:PartyId> <eb:Location>http://vishwa:7001/TRPReceivingMSH</eb:Location> </eb:Sender> </eb:TraceHeader> </eb:TraceHeaderList> <ds:Signature xmlns="http://www.w3.org/2000/09/xmldsig#"> <ds:SignedInfo> <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2000/WD-xml-c14n-20001011"/> <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#dsa-sha1"/> </ds:SignedInfo> <SignatureValue> Z1qAW0n+dblVZA2g69WRkw/tk+9Z6FKzgMp6k2gOBzuJYMsakBhsXw== </SignatureValue> <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"> <KeyValue> <DSAKeyValue> <P> /X9TgR11EilS30qcLuzk5/YRt1I870QAwx4/gLZRJmlFXUAiUftZPY1Y+r/F9bow9s ubVWzXgTuAHTRv8mZgt2uZUKWkn5/oBHsQIsJPu6nX/rfGG/g7V+fGqKYVDwT7g/bT xR7DAjVUE1oWkTL2dfOuK2HXKu/yIgMZndFIAcc= </P> <Q>l2BQjxUjC8yykrmCouuEC/BYHPU=</Q> <G> 9+GghdabPd7LvKtcNrhXuXmUr7v6OuqC+VdMCz0HgmdRWVeOutRZT+ZxBxCBgLRJFn Ej6EwoFhO3zwkyjMim4TwWeotUfI0o4KOuHiuzpnWRbqN/C/ohNWLx+2J6ASQ7zKTx vqhRkImog9/hWuWfBpKLZl6Ae1UlZAFMO/7PSSo= </G> <Y> 7NNC7tuPDFvNtGkoc8elFc3Qf7Lt6+RH3frssOZyFRbYi+pzIPCbDd4YeWmBpinIpb TPXUoqBgM81bt0+mYjuzxjNxRXVE8neIw7KDgNzuYf7gEvwA8dC8r/lHVNiIqF3MM6 8WXrpUVMuqkECvraZDs2o14ar2Y9sheJtcjBBDQ= </Y> </DSAKeyValue> </KeyValue> <X509Data> <X509IssuerSerial> <X509IssuerName>CN=John\20Doe,OU=Technology\20Development,O=example.com,L=nowhere,ST=atall,C=US</X509IssuerName> <X509SerialNumber>1004524004</X509SerialNumber> </X509IssuerSerial> <X509SubjectName>CN=John\20Doe,OU=Technology\20Development,O=example.com,L=nowhere,ST=atall,C=US</X509SubjectName> <X509Certificate> MIIDJzCCAuUCBDvf0eQwCwYHKoZIzjgEAwUAMHkxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIEwVhdGFs bDEQMA4GA1UEBxMHbm93aGVyZTEUMBIGA1UEChMLZXhhbXBsZS5jb20xHzAdBgNVBAsTFlRlY2hu b2xvZ3kgRGV2ZWxvcG1lbnQxETAPBgNVBAMTCEpvaG4gRG9lMB4XDTAxMTAzMTEwMjY0NFoXDTAy MDEyOTEwMjY0NFoweTELMAkGA1UEBhMCVVMxDjAMBgNVBAgTBWF0YWxsMRAwDgYDVQQHEwdub3do ZXJlMRQwEgYDVQQKEwtleGFtcGxlLmNvbTEfMB0GA1UECxMWVGVjaG5vbG9neSBEZXZlbG9wbWVu dDERMA8GA1UEAxMISm9obiBEb2UwggG4MIIBLAYHKoZIzjgEATCCAR8CgYEA/X9TgR11EilS30qc Luzk5/YRt1I870QAwx4/gLZRJmlFXUAiUftZPY1Y+r/F9bow9subVWzXgTuAHTRv8mZgt2uZUKWk n5/oBHsQIsJPu6nX/rfGG/g7V+fGqKYVDwT7g/bTxR7DAjVUE1oWkTL2dfOuK2HXKu/yIgMZndFI AccCFQCXYFCPFSMLzLKSuYKi64QL8Fgc9QKBgQD34aCF1ps93su8q1w2uFe5eZSvu/o66oL5V0wL PQeCZ1FZV4661FlP5nEHEIGAtEkWcSPoTCgWE7fPCTKMyKbhPBZ6i1R8jSjgo64eK7OmdZFuo38L +iE1YvH7YnoBJDvMpPG+qFGQiaiD3+Fa5Z8GkotmXoB7VSVkAUw7/s9JKgOBhQACgYEA7NNC7tuP DFvNtGkoc8elFc3Qf7Lt6+RH3frssOZyFRbYi+pzIPCbDd4YeWmBpinIpbTPXUoqBgM81bt0+mYj uzxjNxRXVE8neIw7KDgNzuYf7gEvwA8dC8r/lHVNiIqF3MM68WXrpUVMuqkECvraZDs2o14ar2Y9 sheJtcjBBDQwCwYHKoZIzjgEAwUAAy8AMCwCFESKEsGUkacZ1KI9UWXPMnKdtDYeAhQ54zmoEYeT iQKBhbUGlfu8qRO4EQ== </X509Certificate> </X509Data> </KeyInfo> </ds:Signature> </SOAP-ENV:Header> <SOAP-ENV:Body> <eb:Manifest eb:id="manifest01" eb:version="1.0"> <eb:Reference eb:id="pay000" xlink:href="cid:3152634.1015574314969.trp.vijay" xlink:type="simple"> <eb:Schema eb:location="C:\Demo\JavaDemo\FileDemo\porder.xsd" eb:version="1.0"/> </eb:Reference> <eb:Reference eb:id="pay001" xlink:href="cid:3885387.1015574314969.trp.vijay" xlink:type="simple"/> </eb:Manifest> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC