ws-soap-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "C Santosh Kumar" <...@ebizportals.com>
Subject Re: Parsing XML document for validation errors
Date Tue, 22 Jan 2002 06:12:13 GMT
Are you validating the whole soap message or just the message inside
the soap-body element, against the xsd? From the errors it seems you
are validating the whole soap message and your xsd doesnt have the defs
of Envelope and Body.
I used just the message element during validation, using xerces 1.4.4.

Santosh

----- Original Message -----
From: "Max Stolyarov" <MStolyarov@Novarra.com>
To: <soap-dev@xml.apache.org>
Sent: Tuesday, January 22, 2002 4:47 AM
Subject: Parsing XML document for validation errors


> Hello,
>
>     I downloaded xerces2_0_0beta.jar file and I am using it's SAXParser to
> validate XML document with namespaces. I defined a proper XSD document,
that
> what I think, but everytime I run the validator it crashes while trying to
> validate SOAP elements. These are the errors that I get:
>
> [Error] test3.xml:7:103: src-resolve: Cannot resolve the name
'en:arrayType'
> to a(n) type definition component.
> [Error] test3.xml:7:103: cvc-elt.1: Cannot find the declaration of element
> 'SOAP-ENV:Envelope'.
> [Error] test3.xml:8:16: cvc-elt.1: Cannot find the declaration of element
> 'SOAP-ENV:Body'.
> [Error] test3.xml:21:41: cvc-elt.4.2: Cannot resolve 'en:arrayType' to a
> type definition for element 'userlist'.
> test3.xml: 981 ms (16 elems, 13 attrs, 0 spaces, 168 chars)
>
> Does somebody know what I should do to resolve these errors. Thanks in
> advance.
>
> Max Stolyarov
> NOVARRA
> 3232 Kennicott Ave
> Arlington Heights, Illinois  60004
> Phone:  (847) 368-7800 x 252
> Facsimile:  (847) 590-8144
>
>


Mime
View raw message