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 » How to Read NameSpace data through java compute node

Post new topic  Reply to topic
 How to Read NameSpace data through java compute node « View previous topic :: View next topic » 
Author Message
prasadzkv
PostPosted: Fri Aug 19, 2016 3:15 am    Post subject: How to Read NameSpace data through java compute node Reply with quote

Novice

Joined: 13 Jul 2016
Posts: 21
Location: Chennai

Hi Team,

I am unable to read name space data through java compute node.Could you please help me.

Note: The same thing i can able to read through ESQL using below command.

declare inputref REFERENCE TO InputRoot.XMLNSC.ns1:"TEST_Ext".ns1:Jobs.ns1:Entry.ns1:LatestPeriod.ns:Forms.ns:Entry[2];

But my requirement is to read through JCN. If possible please provide code snippet.

Please find the below input xml.

<?xml version="1.0"?>
<TEST_Ext xmlns="http://test.com/pc/gx/gw.acc.luw.plugin.messaging.TEST_Extmodel"
xmlns:ns0="http://test.com/pc/gx/gwservices.pc.gx.shared.policy.period.policyperiodmodel"
xmlns:ns1="http://test.com/pc/gx/gwservices.pc.gx.shared.general.monetaryamountmodel"
xmlns:ns2="http://test.com/pc/gx/gwservices.pc.gx.shared.policy.formmodel" >
<Jobs>
<Entry>
<JobNumber>0000176998</JobNumber>
<LatestPeriod>
<ns0:AssignedRisk>false</ns0:AssignedRisk>
<ns0:BaseState>FL</ns0:BaseState>
<ns0:BillImmediatelyPercentage>0.0</ns0:BillImmediatelyPercentage>
<ns0:BillingMethod>DirectBill</ns0:BillingMethod>
<ns0:BranchName>Version #1</ns0:BranchName>
<ns0:BranchNumber>1</ns0:BranchNumber>
<ns0:DepositCollected>
<ns1:Amount>0.00</ns1:Amount>
</ns0:DepositCollected>
<ns0:EditEffectiveDate>2016-05-17T00:01:00-07:00</ns0:EditEffectiveDate>
<ns0:Forms>
<ns0:Entry>
<ns2:ChangeType>slice</ns2:ChangeType>
<ns2:CreateTime>2016-05-17T08:50:28.552-07:00</ns2:CreateTime>
<ns2:EffectiveDate>2016-05-17T00:01:00-07:00</ns2:EffectiveDate>
<ns2:EndorsementNumber>1</ns2:EndorsementNumber>
<ns2:ExpirationDate>2016-11-17T00:01:00-08:00</ns2:ExpirationDate>
<ns2:FormDescription>SUSPENSION</ns2:FormDescription>
<ns2:FormNumber>PA0137</ns2:FormNumber>
<ns2:FormTextData>
<ns3:TextData>100</ns3:TextData>
<ns3:TextData1>2</ns3:TextData1>
</ns2:FormTextData>
<ns2:InferenceTime>quote</ns2:InferenceTime>
<ns2:UpdateTime>2016-05-17T08:50:43.926-07:00</ns2:UpdateTime>
</ns0:Entry>
<ns0:Entry>
<ns2:ChangeType>slice</ns2:ChangeType>
<ns2:CreateTime>2016-05-17T08:50:43.926-07:00</ns2:CreateTime>
<ns2:EffectiveDate>2016-05-17T00:01:00-07:00</ns2:EffectiveDate>
<ns2:ExpirationDate>2016-11-17T00:01:00-08:00</ns2:ExpirationDate>
<ns2:FormDescription>Dec Sheet</ns2:FormDescription>
<ns2:FormNumber>PA 00DS</ns2:FormNumber>
<ns2:FormTextData>
<ns3:TextData>238</ns3:TextData>
<ns3:TextData1>200</ns3:TextData1>
</ns2:FormTextData>
<ns2:InferenceTime>bind</ns2:InferenceTime>
<ns2:UpdateTime>2016-05-17T08:50:43.926-07:00</ns2:UpdateTime>
</ns0:Entry>
</Entry>
</Jobs>
</TEST_Ext>
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat Aug 20, 2016 5:18 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

Have you tried something like
Code:
 String ns = mBElement.getNamespace();
?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
prasadzkv
PostPosted: Sun Aug 21, 2016 11:51 pm    Post subject: Reply with quote

Novice

Joined: 13 Jul 2016
Posts: 21
Location: Chennai

Thanks fjb_saper for the reply,

With the above code snippet i can get only name space.But i would like to know how to read the the flowing input elements values through JCN like ESQL.
<ns3:TextData>238</ns3:TextData>
<ns3:TextData1>200</ns3:TextData1>

Back to top
View user's profile Send private message
smdavies99
PostPosted: Mon Aug 22, 2016 12:39 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Have you looked at the samples provided with the product to see if there is some code that does what you want?
Have you searched this forum for a solution?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
prasadzkv
PostPosted: Mon Aug 22, 2016 2:38 am    Post subject: Reply with quote

Novice

Joined: 13 Jul 2016
Posts: 21
Location: Chennai

Hi smdavies,

I searched the samples which is provided in the forum but i havn't get the "name space values read" solution.

If you have any example or link to get the solution could you please post. it will be very good help for me.

Thanks in advance.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Aug 22, 2016 2:50 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

prasadzkv wrote:
Hi smdavies,

I searched the samples which is provided in the forum but i havn't get the "name space values read" solution.

If you have any example or link to get the solution could you please post. it will be very good help for me.

Thanks in advance.

read this
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to Read NameSpace data through java compute node
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.