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 » Creating XMLNSC

Post new topic  Reply to topic
 Creating XMLNSC « View previous topic :: View next topic » 
Author Message
hikari_sukunami
PostPosted: Sun Oct 13, 2013 8:49 pm    Post subject: Creating XMLNSC Reply with quote

Newbie

Joined: 26 Sep 2013
Posts: 6

Hi,

I'm just new in building/creating xmlnsc.

How will I build this one?

<CCR f="R" a="4">
<Session-Id f="M">CLP_20130913000008</Session-Id>
<Origin-Host f="M">10.123.56.73</Origin-Host>
<Origin-Realm f="M">smart1.com.ph</Origin-Realm>
</CCR>

I've tried this but it's not working.
CREATE LASTCHILD OF OutputRoot.XMLNSC Name 'CCR';
SET OutputRoot.XMLNSC.CCR.(XMLNSC.Attribute)f = 'R';
SET OutputRoot.XMLNSC.CCR.(XMLNSC.Attribute)a = '4';

SET OutputRoot.XMLNSC.CCR.Session-Id(XMLNSC.Field)Session-Id = 'CLP-12423';

It is not finished yet. But I can't compile it. Thanks.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Oct 14, 2013 3:25 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

What tool are you using ? WMB Toolkit ? POJO Eclipse ?

You are writing ESQL code and expecting to compile it in Java POJO ?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Mon Oct 14, 2013 1:52 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

I think this line is your problem:
Code:
SET OutputRoot.XMLNSC.CCR.Session-Id(XMLNSC.Field)Session-Id = 'CLP-12423';

You have written Session-Id(XMLNSC.Field)Session-Id instead of (XMLNSC.Field)Session-Id.
_________________
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
dogorsy
PostPosted: Mon Oct 14, 2013 11:36 pm    Post subject: Re: Creating XMLNSC Reply with quote

Knight

Joined: 13 Mar 2013
Posts: 553
Location: Home Office

hikari_sukunami wrote:
CREATE LASTCHILD OF OutputRoot.XMLNSC Name 'CCR';
SET OutputRoot.XMLNSC.CCR.(XMLNSC.Attribute)f = 'R';
SET OutputRoot.XMLNSC.CCR.(XMLNSC.Attribute)a = '4';

Up to here you are ok, and that will create this line:
Code:
<CCR f="R" a="4">


Now, based on that, you need to build the next:
Code:
<Session-Id f="M">CLP_20130913000008</Session-Id>

and remember that Session-Id is a child of CCR.
Try a few things and see what you get. You will need two SET statements, as Session-Id has a VALUE (CLP_2013....) and a child (f="M")
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 » Creating XMLNSC
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.