cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing Message in Graphical Mapping

Former Member
0 Kudos

Hi,

In a scenario I have to do some operations in Message Mapping. For one of this operations it is necessary to have access to a part of the message. Starting with a special element I want to load the subtree as string into a user definied function.

Do someone know a trick to solve this issue?

Thanks and Regards

Olli

Accepted Solutions (0)

Answers (3)

Answers (3)

justin_santhanam
Active Contributor
0 Kudos

Oliver,

Is it possible to give you an example?

raj.

Former Member
0 Kudos

Hi,

something like this:

<root>

<sub1>

<element1>data1</element1>

<sub1>

</root>

What I know want is to map:

<sub1>

<element1>data1</element1>

<sub1>

as text to a target field. (Well additionally I have to escape the '<', '>', '</', but that is not the problem).

Thanks

Regards

Olli

Message was edited by:

Oliver Huppert

Former Member
0 Kudos

HI,

Still your requirement is not clear to me. can you please explain me with the example. It will help me to solve your problem quickly

Thnx

Chirag Gohil

Former Member
0 Kudos

well based upon my understanding of your requirement.

you can create a simple UDF with as many input values as you want to use and then do whatever you want in UDF and map this to the receiver.

is this what you are looking for or i m still missin something?

Thanx

Aamir

Former Member
0 Kudos

Hi Aamir,

well, thats a "simple" way, but I want to create one UDF for all cases. And it is always a complete sub tree of the xml tree.

So the best way for me would be to determine the elements and data of the original message hanging under an element, which is the input the UDF.

henrique_pinto
Active Contributor
0 Kudos

It's not possible with UDFs.

Try with either XSLT or Java mappings.

Regards,

Henrique.

Former Member
0 Kudos

That's what I did.

iprieto
Contributor
0 Kudos

I think that you must to implement Java Class and import this class in Imported Archives option. You can to manipulate the whole XML.

In this case Graphical Mapping in not enough.

Former Member
0 Kudos

change Cache to either <i>Context</i> or <i>Queue</i>(depending upon your requirement) in UDF

Thanx

Aamir

Former Member
0 Kudos

Hi,

no what I meant was access to sub elements starting from a certain element down.

I'am aware of concepts of context and all this stuff.

Regards

Olli