Author |
Message
|
prasadzkv |
Posted: Fri Aug 19, 2016 3:15 am Post subject: How to Read NameSpace data through java compute node |
|
|
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 |
|
 |
fjb_saper |
Posted: Sat Aug 20, 2016 5:18 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Have you tried something like
Code: |
String ns = mBElement.getNamespace(); |
? _________________ MQ & Broker admin |
|
Back to top |
|
 |
prasadzkv |
Posted: Sun Aug 21, 2016 11:51 pm Post subject: |
|
|
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 |
|
 |
smdavies99 |
Posted: Mon Aug 22, 2016 12:39 am Post subject: |
|
|
 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 |
|
 |
prasadzkv |
Posted: Mon Aug 22, 2016 2:38 am Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Mon Aug 22, 2016 2:50 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 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 |
|
 |
|