Message Editor Pipeline Component
This component lets you edit automatically any part of a multipart message within a send or receive pipeline. You add this component to an existing pipeline to set up the replacement as part of typical processing.
Building the Message Editor Pipeline Component into an Existing Pipeline
To use the Message Editor Pipeline Component, you have to add the component to an existing pipeline. For more information, see "Creating Pipelines with Pipeline Designer" in BizTalk Server Help.
To add the Message Editor Pipeline Component to an existing pipeline
Start Visual Studio.
On the File menu, point to Open, and then click Project.
Move to C:\Program Files (x86)\Microsoft BizTalk <version> Accelerator for RosettaNet\SDK\Message Editor Pipeline Component, select MessageEditor.csproj, and then click Open.
Start Visual Studio command prompt.
At the command prompt, move to C:\Program Files (x86)\Microsoft BizTalk <version> Accelerator for RosettaNet\SDK\Message Editor Pipeline Component\obj\debug.
At the command prompt, type sn -k MessageEditor.snk to create a key, and then press ENTER.
In Visual Studio, in Solution Explorer, right-click MessageEditor, and then click Properties.
In the MessageEditor Property page, click Signing tab, and then click Sign the assembly checkbox.
In Choose a strong name key file drop-down, browse to C:\Program Files (x86)\Microsoft BizTalk <version> Accelerator for RosettaNet\ SDK\Message Editor Pipeline Component\obj\debug and select MessageEditor.snk and then click Open.
In Solution Explorer, right-click MessageEditor, and then click Build. Verify in the Output pane that the build succeeded.
Click Start, point to All Programs, point to Accessories, and then click Windows Explorer.
In Windows Explorer, move to C:\Program Files\Microsoft BizTalk 2013 Accelerator for RosettaNet\SDK\Message Editor Pipeline Component\obj\debug, right-click Microsoft.Solutions.BTARN.SDK.MessageEditor.dll, and then click Copy.
Move to C:\Program Files\Microsoft BizTalk Server 2013\Pipeline Components, right-click Pipeline Components, and then click Paste.
In Visual Studio, on the File menu, point to Open, and then click Project.
Open the project that contains the pipeline to which you want to add the editor.
In Solution Explorer, double-click the pipeline name to open the pipeline in Pipeline Designer.
Right-click in the BizTalk Pipeline Components pane of the Toolbox pane, and then click Add/Remove Items.
In the Customize Toolbox dialog box, on the BizTalk Pipeline Components tab, select BTARN Message Editor Component, and then click OK.
In the BizTalk Pipeline Components pane of the Toolbox pane, click and hold BTARN Message Editor Component, and then drag the component to the position that you want in the pipeline.
In the BizTalk Pipeline Components pane of the Toolbox pane, click and hold BTARN Message Editor Component, and then drag the component to the position that you want in the pipeline.
Note
It is recommended that you add the Message Editor Pipeline Component after the Disassemble stage in the receive pipeline component or in the Pre-Assemble stage of the send pipeline component.
In Visual Studio, in Pipeline Designer, select the BTARN Message Editor Component shape.
In the Properties pane, in the text box associated with XPath Query, type the name of the XPath element for which you want to change the value.
In the text box associated with XPath Value, type the value to which you want to set the XPath element.
In Solutions Explorer, right-click the project name, and then click Build. Verify that the build succeeds.
In Solutions Explorer, right-click the project name, and then click Deploy. Verify that the deployment succeeds.
Example
To change the value of the element ProprietaryDocumentIdentifier
in the 0C1 PIP Schema, add the XPath Query shown in the following Code section to the XPath Query property of the Message Editor Pipeline Component.
/*[local-name()='Pip0C1AsynchronousTestNotification' and namespace-uri()='http://schemas.microsoft.com/biztalk/btarn/2004/0C1_MS_R01_02_AsynchronousTestNotification.dtd']/*[local-name()='thisDocumentIdentifier' and namespace-uri()='http://schemas.microsoft.com/biztalk/btarn/2004/0C1_MS_R01_02_AsynchronousTestNotification.dtd']/*[local-name()='ProprietaryDocumentIdentifier' and namespace-uri()='http://schemas.microsoft.com/biztalk/btarn/2004/0C1_MS_R01_02_AsynchronousTestNotification.dtd']
To obtain a complete XPath Query, open the schema in BizTalk Editor, and then copy the Xpath from the Instance XPath
property under the Properties window. The XPath Query that you provide should have all the namespace references in it.