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 » Unable to create the XMLNSC.Attribute in output response

Post new topic  Reply to topic
 Unable to create the XMLNSC.Attribute in output response « View previous topic :: View next topic » 
Author Message
am040383
PostPosted: Thu Sep 11, 2014 12:20 am    Post subject: Unable to create the XMLNSC.Attribute in output response Reply with quote

Newbie

Joined: 30 Jul 2009
Posts: 5

Hi,
Unable to create the XMLNSC.Attribute in output response. Please help.
OUTPUT is coming as:
Code:
<DATA>
               <Event>
                  <source>
                     <main>Web</main>
                     <sub>Service</sub>
</source>
</Event>
                  </DATA>

My req XML should be as:
===========
Code:
<DATA>
               <Event>
                  <source main="Web" sub="Service"></source></Event></DATA>


===========
Sample Code::

Code:
CREATE LASTCHILD OF Environment.Variable.C DOMAIN 'XMLNSC' NAME 'DATA' ;   
      DECLARE ref REFERENCE TO Environment.Variable.C.Event ;
SET ref.source.(XMLNSC.Attribute)main ='Web';
      SET ref.source.(XMLNSC.Attribute)sub ='Service';

SET OutputRoot.XMLNSC.ns:Response = Environment.Variable.C;
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Sep 11, 2014 12:42 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Please use formatting in your posts - it makes it so much easier for the people whose help you are requesting

My suggestion is the usual one :
- create an XML parsing flow with a Trace node after the input node
- parse the required input XML and save the Trace node output as trace1
- compare that Trace node output with the Trace node output from your XML writing flow.
- adjust your ESQL until the Trace node outputs are the same.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
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 » Unable to create the XMLNSC.Attribute in output response
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.