|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Creating XMLNSC |
« View previous topic :: View next topic » |
Author |
Message
|
hikari_sukunami |
Posted: Sun Oct 13, 2013 8:49 pm Post subject: Creating XMLNSC |
|
|
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 |
|
 |
lancelotlinc |
Posted: Mon Oct 14, 2013 3:25 am Post subject: |
|
|
 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 |
|
 |
kimbert |
Posted: Mon Oct 14, 2013 1:52 pm Post subject: |
|
|
 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 |
|
 |
dogorsy |
Posted: Mon Oct 14, 2013 11:36 pm Post subject: Re: Creating XMLNSC |
|
|
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:
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|