Gady
Gady

Reputation: 1514

Can I create a schema that validates both soap 1.1 and 1.2

I need a schema that validates both soap 1.1 and 1.2 how can I do it ?

Upvotes: 1

Views: 139

Answers (1)

xcut
xcut

Reputation: 6349

No you can't. The two versions have different namespaces (http://www.w3.org/2003/05/soap-envelope and http://schemas.xmlsoap.org/soap/envelope/), respectively. A schema can only have a single target namespace.

It would be better if you obtained both schemas, and then set up a parser with a schema cache or a catalogue that will pick out the right schema given the namespace.

Upvotes: 1

Related Questions