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