Scripting with external assemblies is the preferred way to use scripting in Microsoft® BizTalk® Server 2004. External assemblies provide the several advantages:
- Easy code sharing
- Simpler maintenance
- Easier debugging
Re-using the script only requires setting the Script property of the Scripting functoid. Because the script is stored outside of the map, you can modify the script without changing the map. And you can use the full panoply of Visual Studio debugging tools to ensure your script runs correctly.
For a sample function housed in an external assembly, see XML Tools (BizTalk Server Samples Folder).
Notice in the sample that functions used in the Scripting functoid may not be static (shared).
See Also
Scripting Functoid
Scripting Using Inline C#, JScript .NET, and Visual Basic .NET
Scripting Using Inline XSLT and XSLT Call Templates
Adding Scripting Functoids to a Map
Configuring the Scripting Functoid