cancel
Showing results for 
Search instead for 
Did you mean: 

Identifying target interface based on fields of source interface

Former Member
0 Kudos

Hi All,

I have XML file to file scenario.

I may get 2 types of XML files, structure is same but content is diffrent, I may get any type of file.

Based on source content field, I have to identify the target interface and send message accordingly.

My design:

1) One Source interface and two target interfaces.

2) 2 target files should generate in the same business system, so that I used the same service twice in configured receivers.

3) In interface determination I tried to use condition on which it should select the right interface

Here I faced the problem, In X path I was unable to find any fields except root node of XML data.

Pls suggest what to do..

Thanks,

Venu.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

try to use context object.

regards,

wojtek

Former Member
0 Kudos

In context object i didn't find any filed information of message.

Former Member
0 Kudos

>>>>In context object i didn't find any filed information of message.

Just create a context object and assign it in your interface. In interface determination, use the context object to check the value. It will contain the value only at run time.

Haven't tried XSD with XPATH.

Regards,

Jai Shankar.

Former Member
0 Kudos

Hi Venu,

Yes it is possible. You need to have 2 inbound interfaces. You should be able to see the source fields in Interface determination. Have a look at the blog

/people/suraj.sr/blog/2006/01/05/multiple-inbound-interfaces-within-a-service

It addresses your scenario exactly.

Regards,

Jai Shankar.

Former Member
0 Kudos

Hi Jai Shankar,

Yes, the same i'm doing but in Xpath i was unable to get the message type since I'm using XML schema definition I think.

Do I need to do anything if I use XML schams for source structure definition?