[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">&lt;<a \
href="mailto:mrglavas@ca.ibm.com">mrglavas@ca.ibm.com</a>&gt;</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 &lt;<a href="mailto:snehanikum@gmail.com" \
target="_blank">snehanikum@gmail.com</a>&gt; wrote on 06/29/2009 02:25:29 AM:<div \
class="im"><br> <br>
&gt; Hi Michael,<br>
&gt; <br>
&gt; Firstly thanks a lot for your reply.<br>
&gt; <br>
&gt; I did the changes that you had suggested.<br>
&gt; <br>
&gt; The changes I did are as:<br>
&gt; parser.setProperty(&quot;<a href="http://apache" \
target="_blank">http://apache</a>.<br> &gt; \
org/xml/properties/schema/external-schemaLocation&quot;, &quot;<a \
href="http://schemas" target="_blank">http://schemas</a>.<br> &gt; <a \
href="http://xmlsoap.org/soap/envelope/" \
target="_blank">xmlsoap.org/soap/envelope/</a> &quot; + xsdFile);<br> &gt; <br>
&gt; The earlier error message has gone. Now I get another error that says:<br>
&gt; cvc-complex-type.2.4.a: Invalid content was found starting with <br>
&gt; element &#39;SOAP-ENV:Body&#39;. One of &#39;{Body}&#39; is expected.<br>
&gt; <br>
&gt; I dont want to change the response.xml because it contains the <br>
&gt; response that i get from the server and I dont want to play with that.<br>
&gt; <br>
&gt; 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: \
&quot;<a href="http://schemas.xmlsoap.org/soap/envelope/" \
target="_blank">http://schemas.xmlsoap.org/soap/envelope/</a>&quot;? The \
GenericSchema.xsd document you had posted is different from this. In particular in \
GenericSchema.xsd the &quot;Body&quot; element has been declared locally and has no \
namespace. In the official schema &quot;Body&quot; is global and has the &quot;<a \
href="http://schemas.xmlsoap.org/soap/envelope/" \
target="_blank">http://schemas.xmlsoap.org/soap/envelope/</a>&quot; namespace. Only \
the latter corresponds to the definition of the SOAP envelope.</tt><br>


<tt><br>
&gt; Thanks and regards,<br>
&gt; 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