Page 1 of 1

How to map XML composers target fields to Transformer stage?

Posted: Thu Nov 24, 2016 9:57 am
by skhan2@gmx.us
Hi,
How to map XML composers target fields to Transformer stage?.
Requirement :to send XML to Web service(People soft) but requirement not allowing us to send XML as single string.


So,please response if any one have any idea?

Thanks in Advance.

Posted: Thu Nov 24, 2016 3:50 pm
by JRodriguez
I guess that you would need to land the file coming out of hierarchical stage to pick it up as a full XML file but if you just need the full XML content you always could refer to the XML content by just providing the root "/" in your next transformer for the description of the column, if the hierarchical stage is connected to the transformer stage

Would that do the trick?

Posted: Fri Nov 25, 2016 6:39 am
by eostic
This is a reason I always recommend that you NEVER ask the Hierarchical Stage or the xmlOutput Stage to do their own I/O. There are too many times where instead of writing to disk, you want to write the xml to a message queue, a database, transform it further, or send it to a web service, etc.

As noted above for the xmlOutput Stage, use one big column and put a single slash / in the Description. With the Hierarchical Stage, have one single column and in the Output step, assuming you have done everything correctly up above in the Assembly, map it to the "composer result".

Ernie

Posted: Thu Dec 01, 2016 6:10 am
by skhan2@gmx.us
Hi Rodriguez,
Could you please share one example how to do the above mentioned requirement in descriptive manner??

Thanks & Regards,
Shahnawaz

Posted: Fri Dec 02, 2016 2:45 pm
by UCDI
depending on what exactly you have at your disposal, you can dump the xml to a xml field in an xml capable database and pull the columns back out with an xquery statement. This may or may not be available to you and I have no idea if it is efficient to do so (It probably has terrible performance, to be honest). But it does make it easy for some scenarios. YMMV.