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
<mrgla...@ca.ibm.com>wrote:

>  Hi Sneha,
>
> Sneha Nikum <snehani...@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: mrgla...@ca.ibm.com
> E-mail: mrgla...@apache.org
>

Reply via email to