Author |
Message
|
premji |
Posted: Tue Apr 28, 2015 3:31 am Post subject: How can we transform XML data to IDOC by using JCN |
|
|
Acolyte
Joined: 01 Jul 2013 Posts: 64
|
Hi All,
Is it possible to transform XML format to IDOC format by using Java Compute node, if it is yes could you please share sample code.
Thanks in Advance!! |
|
Back to top |
|
 |
iibmate |
Posted: Tue Apr 28, 2015 4:20 am Post subject: Re: How can we transform XML data to IDOC by using JCN |
|
|
 Apprentice
Joined: 17 Mar 2015 Posts: 38 Location: Perth, WA
|
premji wrote: |
Hi All,
Is it possible to transform XML format to IDOC format by using Java Compute node, if it is yes could you please share sample code.
Thanks in Advance!! |
Iib java api supports xpath . highly possible.
Refer to XML to XML data conversion |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Apr 28, 2015 4:42 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
All depends on what you want to do with it. Think about going back to SAP use the DataObject domain and the adapter.
For a transformation outside of SAP you need a DFDL message model and map the XML to the model...
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
premji |
Posted: Tue Apr 28, 2015 4:46 am Post subject: How can we transform XML data to IDOC by using JCN |
|
|
Acolyte
Joined: 01 Jul 2013 Posts: 64
|
Hi fjb_saper,
Thanks for quick reply, in my requirement I do not use mapping node. Only I have perform this transformation using JCN |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Apr 28, 2015 4:51 am Post subject: Re: How can we transform XML data to IDOC by using JCN |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
premji wrote: |
Hi fjb_saper,
Thanks for quick reply, in my requirement I do not use mapping node. Only I have perform this transformation using JCN |
Mapping is not done exclusively in the mapping node.
And if your requirement is that you're not allowed the mapping node, then your requirement is not worth the paper it's written on... because it could just as well say you're not allowed DFDL or message sets.... _________________ MQ & Broker admin |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Apr 28, 2015 5:14 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
If you want to transform one message to another using a JavaCompute node, you write Java code to access the input logical message tree, and then populate the output logical message tree.
If you don't know how to write Java code, then you should use something other than a JCN.
If you also don't know how to work with the logical message tree, then you should use the Mapping node.
Or, you know, take some time and learn. |
|
Back to top |
|
 |
iibmate |
Posted: Tue Apr 28, 2015 5:20 pm Post subject: Re: How can we transform XML data to IDOC by using JCN |
|
|
 Apprentice
Joined: 17 Mar 2015 Posts: 38 Location: Perth, WA
|
premji wrote: |
in my requirement I do not use mapping node. |
Should interpret other folks posts correctly.
Can you post sequence of nodes used and domains under which messages are navigated / should be populated in mapping node ? |
|
Back to top |
|
 |
|