What is the best approach to validate an incoming
SOAP message in its entirety in a client? I am more concerned about validating the SOAP Body content and Header entries which are defined in a vendor's namespace by schemas created by Vendor/WebService provider.
The WebService provider may not provide an "xsi:schemaLocation" attribute for these user defined nodes in the SOAP message. So if we have content in a SOAP message that are defined in different namespaces, do we need to strip those individual nodes and validate them separately. Is there a way in any of the parsers (either thro' JAXP/SAAJ API or in a non-portable way) to say,
"validate nodes in the namespace 'A' with schema 'schemaA.xsd'"
and
"validate nodes in the namespace 'B'with schema 'schemaB.xsd'".
I hope I made it clear. I know that the JAXP API provide a way to specify "one" XML Schema for validating an XML. But more than one based on a namespace...?
Appreciate your help.