ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Namespace issue while migrating from WBIMB to WMB V6.1

Post new topic  Reply to topic
 Namespace issue while migrating from WBIMB to WMB V6.1 « View previous topic :: View next topic » 
Author Message
chris boehnke
PostPosted: Tue Aug 04, 2009 10:26 am    Post subject: Namespace issue while migrating from WBIMB to WMB V6.1 Reply with quote

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:

DECLARE NS1 NAMESPACE 'http://www.ACORD.org/standards/PC_Surety/ACORD1.10.0/xml/';

SET OutputRoot.XMLNS.(XML.Element)NS1:ACORD.(XML.NamespaceDecl)xmlns:NS1 = 'http://www.ACORD.org/standards/PC_Surety/ACORD1.10.0/xml/';

I could not get rid of this problem.

Can someone explain me where I am going wrong? If the modification I did above is wrong, please excuse me for my poor knowldge in namespaces.


Thanks in advance
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Namespace issue while migrating from WBIMB to WMB V6.1
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.