Expecting no namespace, but the schema document has a target namespace 2003-01-12 - By Jesus M. Salvo Jr.
I have a SOAP envelope which, when XML schema validation is turned on via JAXP+Xerces, is causing an error. Xerces seems to be having problems with the Schema definition at:
http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-2.xsd
... but when I ran the schema definition via W3C's schema validator at http://www.w3.org/2001/03/webdata/xsv, W3C'S schema validator is not reporting any error.
Below are the SOAP envelope and the error messages:
<?xml version='1.0' encoding='UTF-8'?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="http://www.3gpp.org/ftp/Specs/archive/23_series /23.140/schema/REL-5-MM7-1-2.xsd"> <SOAP-ENV:Header> <TransactionID>123</TransactionID> </SOAP-ENV:Header> <SOAP-ENV:Body> <SubmitReq> <MM7Version>5.4.0</MM7Version> <SenderIdentification> <VASPID>TestAccount</VASPID> <VASID>TestPass</VASID> </SenderIdentification> <Recipients/> <ServiceCode>12</ServiceCode> <MessageClass>Informational</MessageClass> <TimeStamp>2003-01-09T10:14:34+10:00</TimeStamp> <EarliestDeliveryTime>2003-01-09T10:14:34+10:00</EarliestDeliveryTime> <ExpiryDate>2003-01-09T10:14:34+10:00</ExpiryDate> <DeliveryReport>false</DeliveryReport> <Priority>Normal</Priority> <DistributionIndicator>false</DistributionIndicator> </SubmitReq> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
Here are the error messages:
Error: URI=null Line=6: cvc-elt.1: Cannot find the declaration of element 'SOAP-ENV:Envelope'.
Error: URI=http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-2 .xsd Line=2: TargetNamespace.2: Expecting no namespace, but the schema document has a target namespace.
Error: URI=http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-2 .xsd Line=2: TargetNamespace.2: Expecting no namespace, but the schema document has a target namespace.
Error: URI=http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-2 .xsd Line=2: TargetNamespace.2: Expecting no namespace, but the schema document has a target namespace.
Error: URI=http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-2 .xsd Line=2: TargetNamespace.2: Expecting no namespace, but the schema document has a target namespace.
Error: URI=http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-2 .xsd Line=2: TargetNamespace.2: Expecting no namespace, but the schema document has a target namespace.
Error: URI=http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-2 .xsd Line=2: TargetNamespace.2: Expecting no namespace, but the schema document has a target namespace.
Error: URI=http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-2 .xsd Line=2: TargetNamespace.2: Expecting no namespace, but the schema document has a target namespace.
Error: URI=http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-2 .xsd Line=2: TargetNamespace.2: Expecting no namespace, but the schema document has a target namespace.
Error: URI=http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-2 .xsd Line=2: TargetNamespace.2: Expecting no namespace, but the schema document has a target namespace.
-- Jesus M. Salvo Jr. Mobile Internet Group Pty Ltd (formerly Softgame International Pty Ltd) M: +61 409 126699 T: +61 2 94604777 F: +61 2 94603677
PGP Public key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xC0BA5348
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|