Posted: Tue Aug 04, 2009 10:26 am Post subject: Namespace issue while migrating from WBIMB to WMB V6.1
Partisan
Joined: 25 Jul 2006 Posts: 369
Hi All,
We are in a process of migrating our message flows from WBIMB to WMB V6.1. I am facing a problem with the namespace issue.
I have the code like this for namespace declaration.
DECLARE tst NAMESPACE 'urn:com.pi-extensions.2007.07';
SET OutputRoot.XMLNS.(XML.Element)ACORD.(XML.NamespaceDecl)xmlns:tst = 'urn:com.pi-extensions.2006.06';
SET OutputRoot.XMLNS.(XML.Element)ACORD.(XML.NamespaceDecl)xmlns = 'http://www.ACORD.org/standards/PC_Surety/ACORD1.10.0/xml/';
I am getting an exception after the message comes out of the compute node and tries to fed into RCD node.
The error is:
ParserException BIP5010E: XML Writing Errors have occurred.
Errors have occurred during writing of XML.
Review further error messages for an indication to the cause of the errors.
2009-08-04 10:45:01.131613 5972 ParserException BIP5014E: Element must have a namespace specified if there is a default namespace in scope.
Whilst writing the XMLNS message, element 'ACORD' was found to be in scope of a default namespace, but this element does not have a namespace defined.
This error can occur if the NamespaceDecl correlation name has been used to create a default namespace for a parent element, and a child element has been created that does not have a namespace. If you have defined a default namespace in your output message tree, then all elements that are in scope of this default namespace must be defined to be in a namespace. Modify the output message tree so that element 'ACORD' is defined to be in a namespace. If element 'ACORD' belongs to the default namespace, then this element needs to be created in the default namespace.
I have tried to rectify this issue by defining a namespace like this:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum