Print this page

 

Problem: to change the namespace on a message in WMB.  This can often occur when converting between an Application Specific Business Object (ASBO) and a generic business object (GBO).

First copy the message changing from namespace 2 (ns2) to namespace1 (ns1):

SET OutputRoot.XMLNSC.ns1:responseMsg = InputRoot.XMLNSC.ns2:responseMsg;

Note that this only changes the very top level of the tree.

Then, to ensure that the prefix for the namespace is correct, issue the following:

SET OutputRoot.XMLNSC.ns1:responseMsg.(XMLNSC.NamespaceDecl)xmlns:"ns1" = ns1;

Finally, delete namespace 2:

DELETE FIELD OutputRoot.XMLNSC.ns2:responseMsg.*:ns2;