Assuming the namespace of the soap-env prefix in
<soap-env:envelope>
…
</soap-env:envelope>
is the same as the default prefix in
<envelope>
…
</envelope>
They are logically the same as XML. If sending a node object to pub.schema:validate, both of these documents should pass validation.
If you are sending the node object to xmlNodeToDocument and sending the Document (ie. the IData instance) to pub.schema:validate, if you don’t set the parameter that defines specific namespace->prefix mapping, then the created Document will have different field names for the two XML documents - this would cause a failure of pub.schema:validate. Having field names change for different documents would also cause Flow Maps to fail.
See the nsDecls parameter of xmlNodeToDocument to define the prefix that should be created for each expected namespace, so the generated Document will have consistent names, independent of the incoming XML file.
HTH,
Fred
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods