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 » XML Attributes not propagated by XMLNSC parser

Post new topic  Reply to topic
 XML Attributes not propagated by XMLNSC parser « View previous topic :: View next topic » 
Author Message
matthewmatcham
PostPosted: Fri Mar 02, 2012 7:44 am    Post subject: XML Attributes not propagated by XMLNSC parser Reply with quote

Novice

Joined: 06 Sep 2006
Posts: 12
Location: UK

I've found previous posts relating to attributes being lost when copying XML to the Environment, but nothing that seems to relate directly to this.

We have a message that looks like this (note the presence of two "code" attributes):

Code:
<Party id="166573059834041" externalId="" state="Existing">
            <Type code="Client" subid="0">Client</Type>
            <SubType code="Individual">Individual</SubType>
            <CurrentStatus value="Active" date="2011-07-21">Active</CurrentStatus>
</Party>


We are temporarily storing this in the Environment and then repopulating the OutputRoot as follows:

Code:
CREATE LASTCHILD OF Environment.Variables DOMAIN('XMLNSC') NAME 'MyMessage';
SET Environment.Variables.MyMessage = InputRoot.SOAP.Body.ns_caseSubmission:submitCase.ns_caseSubmission:MessageData;

SET OutputRoot.xmlMessage = Environment.Variables.MyMessage;


The result in Environment.Variables.MyMessage is as expected, however the result in OutputRoot is odd; it seems that whenever an attribute called "code" is present, we lose all attributes for that particular element, but other attributes are maintained:

Code:
<Party id="166573059834041" externalId="" state="Existing">
            <Type>Client</Type>
            <SubType>Individual</SubType>
            <CurrentStatus value="Active" date="2011-07-21">Active</CurrentStatus>
</Party>


We've tried different flavours of XML and it's always the presence of "code" that throws a spanner in the works.

Any help is appreciated. Broker 6.1.0.2 on Windows.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Mar 02, 2012 7:59 am    Post subject: Re: XML Attributes not propagated by XMLNSC parser Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Here is your problem.

matthewmatcham wrote:
Code:
SET OutputRoot.xmlMessage
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 » XML Attributes not propagated by XMLNSC parser
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.