cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Response Root node

Former Member
0 Kudos

In a synchronous scenario, I need for the response to potentially come back in 2 different forms. For example, the response could back into XI with 1 of the following:

<?xml version="1.0" encoding="UTF-8"?>

<RETURNXML_1>

<CONFIRMATION_CODE>test</CONFIRMATION_CODE>

<ACCOUNT>123456</ACCOUNT>

<PAYMENT_AMOUNT>10.00</PAYMENT_AMOUNT>

</RETURNXML_1>

OR

<?xml version="1.0" encoding="UTF-8"?>

<RETURNXML_2>

<LINE1>af</LINE1>

<LINE2>dfs</LINE2>

<LINE3>ds</LINE3>

</RETURNXML_2>

Therefore, it's necessary for XI to handle different response root nodes depending on what comes back.

Anyone have encountered this?

Thanks.

Bevan

Accepted Solutions (0)

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi Bevan,

maybe you could somehow combine the two?

like this:

<topnode>

<RETURNXML_1>

<CONFIRMATION_CODE>test</CONFIRMATION_CODE>

<ACCOUNT>123456</ACCOUNT>

<PAYMENT_AMOUNT>10.00</PAYMENT_AMOUNT>

</RETURNXML_1>

<RETURNXML_2>

<LINE1>af</LINE1>

<LINE2>dfs</LINE2>

<LINE3>ds</LINE3>

</RETURNXML_2>

</topnode>

and then make w switch step (if line1 Exists then RETURNXML_2 else RETURNXML_1) and then in the next step do a simple transformation to the RETURNXML_1 or RETURNXML_2

Regards,

michal

Former Member
0 Kudos

Hi Michal,

Yes, that would be nice, however, we cannot change this requirement. XI must be able to accept dynamic root node b/c that is the way that a 3rd party's response is formatted and we cannot change this.

Any other solutions?