on 04-21-2005 3:18 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.