[prev in list] [next in list] [prev in thread] [next in thread]
List: xerces-j-user
Subject: Re: cvc-elt.1: Cannot find the declaration of element
From: Sneha Nikum <snehanikum () gmail ! com>
Date: 2009-06-30 10:31:42
Message-ID: cb8936560906300319t6d5c3cear302536c38a1b0a36 () mail ! gmail ! com
[Download RAW message or body]
Hi Michael,
Thanks a lot for all the help.
I had figured it out yeserday and it worked for me after I changed my
genericSchema.xsd and added namespace to it.
Thanks a lot. :)
Sneha
On Tue, Jun 30, 2009 at 6:58 AM, Michael Glavassevich
<mrglavas@ca.ibm.com>wrote:
> Hi Sneha,
>
> Sneha Nikum <snehanikum@gmail.com> wrote on 06/29/2009 02:25:29 AM:
>
> > Hi Michael,
> >
> > Firstly thanks a lot for your reply.
> >
> > I did the changes that you had suggested.
> >
> > The changes I did are as:
> > parser.setProperty("http://apache.
> > org/xml/properties/schema/external-schemaLocation", "http://schemas.
> > xmlsoap.org/soap/envelope/ " + xsdFile);
> >
> > The earlier error message has gone. Now I get another error that says:
> > cvc-complex-type.2.4.a: Invalid content was found starting with
> > element 'SOAP-ENV:Body'. One of '{Body}' is expected.
> >
> > I dont want to change the response.xml because it contains the
> > response that i get from the server and I dont want to play with that.
> >
> > Please suggest me the steps I need to take for this.
>
> Have you tried using the official SOAP schema which you can download from:
> "http://schemas.xmlsoap.org/soap/envelope/"? The GenericSchema.xsd
> document you had posted is different from this. In particular in
> GenericSchema.xsd the "Body" element has been declared locally and has no
> namespace. In the official schema "Body" is global and has the "
> http://schemas.xmlsoap.org/soap/envelope/" namespace. Only the latter
> corresponds to the definition of the SOAP envelope.
>
> > Thanks and regards,
> > Sneha
>
>
> Thanks.
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: mrglavas@ca.ibm.com
> E-mail: mrglavas@apache.org
>
[Attachment #3 (text/html)]
Hi Michael,<br><br>Thanks a lot for all the help.<br>I had figured it out yeserday \
and it worked for me after I changed my genericSchema.xsd and added namespace to \
it.<br><br>Thanks a lot. :)<br>Sneha<br><br><div class="gmail_quote">
On Tue, Jun 30, 2009 at 6:58 AM, Michael Glavassevich <span dir="ltr"><<a \
href="mailto:mrglavas@ca.ibm.com">mrglavas@ca.ibm.com</a>></span> \
wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, \
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<p><tt>Hi Sneha,</tt><br>
<br>
<tt>Sneha Nikum <<a href="mailto:snehanikum@gmail.com" \
target="_blank">snehanikum@gmail.com</a>> wrote on 06/29/2009 02:25:29 AM:<div \
class="im"><br> <br>
> Hi Michael,<br>
> <br>
> Firstly thanks a lot for your reply.<br>
> <br>
> I did the changes that you had suggested.<br>
> <br>
> The changes I did are as:<br>
> parser.setProperty("<a href="http://apache" \
target="_blank">http://apache</a>.<br> > \
org/xml/properties/schema/external-schemaLocation", "<a \
href="http://schemas" target="_blank">http://schemas</a>.<br> > <a \
href="http://xmlsoap.org/soap/envelope/" \
target="_blank">xmlsoap.org/soap/envelope/</a> " + xsdFile);<br> > <br>
> The earlier error message has gone. Now I get another error that says:<br>
> cvc-complex-type.2.4.a: Invalid content was found starting with <br>
> element 'SOAP-ENV:Body'. One of '{Body}' is expected.<br>
> <br>
> I dont want to change the response.xml because it contains the <br>
> response that i get from the server and I dont want to play with that.<br>
> <br>
> Please suggest me the steps I need to take for this.<br>
</div></tt><br>
<tt>Have you tried using the official SOAP schema which you can download from: \
"<a href="http://schemas.xmlsoap.org/soap/envelope/" \
target="_blank">http://schemas.xmlsoap.org/soap/envelope/</a>"? The \
GenericSchema.xsd document you had posted is different from this. In particular in \
GenericSchema.xsd the "Body" element has been declared locally and has no \
namespace. In the official schema "Body" is global and has the "<a \
href="http://schemas.xmlsoap.org/soap/envelope/" \
target="_blank">http://schemas.xmlsoap.org/soap/envelope/</a>" namespace. Only \
the latter corresponds to the definition of the SOAP envelope.</tt><br>
<tt><br>
> Thanks and regards,<br>
> Sneha</tt></p><div class="im"><br>
<br>
<tt>Thanks.<br>
</tt><br>
<tt>Michael Glavassevich<br>
XML Parser Development<br>
IBM Toronto Lab<br>
E-mail: <a href="mailto:mrglavas@ca.ibm.com" \
target="_blank">mrglavas@ca.ibm.com</a></tt><br> <tt>E-mail: <a \
href="mailto:mrglavas@apache.org" \
target="_blank">mrglavas@apache.org</a></tt></div></div></blockquote></div><br><br \
clear="all"><br><br>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic