What is the best way to customize outbound xml message working with AIF?

1.9k views Asked by At

I found one way: it is override serialize method in the class that derived from AIFDocument class, that was created from AIF Document Wizard, but I'm thinking that is not right way and i'm looking for the best practice in this task.

The customisation is the adding some sections(Elements) that does not contain in the query DataSource, rename tags, add output calculated values which depend, for instance, on the type of record like display methods and so on.

2

There are 2 answers

0
DAXaholic On

You could implement an AIF pipeline component, which is a class implementing the interface AifPipelineComponent. See class AifXmlTransform for an example which provides XSLT transformation. After implementing the class you just add it to a AIF port see MSDN

0
Pedro Ventaja On

You could use an outbound AIF port for your service, then setup a .net assembly transform to do whatever you need with the xml message.

Here's some info: http://technet.microsoft.com/en-us/library/hh696875.aspx