The Custom Party Resolution sample demonstrates how to write a custom pipeline component to resolve a custom party.
The Custom Party Resolution sample accomplishes its task using the following sequence of steps:
-
An XML document is retrieved from a folder.
-
The pipeline resolves the party.
-
The XML message is written to a folder.
Where to Find This Sample
<Samples Path>\Pipelines\CustomPartyResolution\
The following table shows the files in this sample and describes their purpose.
|
File(s)
|
Description
|
|---|
|
AssemblyInfo.cs
|
Assembly information C# source file.
|
|
Cleanup.bat
|
Cleanup batch file.
|
|
CustomPartyResolution.sln
|
Solution file.
|
|
CustomPartyResolutionBinding.xml
|
Binding file.
|
|
CustomPartyResolutionPipeline.btp
|
Pipeline file.
|
|
CustomPartyResolutionPipeline.btproj
|
Pipeline project file.
|
|
CustomPartyResolutionPipelineComponent.cs
|
Pipeline component C# source code.
|
|
CustomPartyResolutionPipelineComponent.csproj
|
Pipeline component Visual Studio project file.
|
|
InboundDocumentSchema.xsd
|
Inbound document schema.
|
|
PartyResolutionStream.cs
|
Party resolution stream C# source code.
|
|
RoutingPropertySchema.xsd
|
Routing property schema file.
|
|
SampleInboundDocumentSchema.xml
|
Inbound document schema file.
|
|
SampleInboundDocumentSchema_Party1.xml
|
Sample data instance.
|
|
SampleInboundDocumentSchema_Party2.xml
|
Sample data instance.
|
|
Setup.bat
|
Build and setup sample pipeline component batch file.
|
Building and Initializing This Sample
To build and initialize the Custom Party Resolution sample
-
In a command window, change directory (cd) to the following folder:
<Samples Path>\Pipelines\CustomPartyResolution\
-
Run the file Setup.bat, which will perform the following actions:
-
Creates the input and output directories used in the sample.
-
Generates a new key file.
-
Builds and deploys the Custom Party Resolution pipeline component.
-
Copies the built pipeline component to the <Installation Path>\Pipeline Components directory.
-
Creates the send and receive ports.
Note |
|---|
|
You should confirm that no errors were reported during the build and initialization process before attempting to run this sample.
|
To run the Custom Party Resolution sample
-
Copy to file SampleInboundDocumentSchema_Party1.xml or SampleInboundDocumentSchema_Party2.xml to the \In folder.
-
The results will appear in the \Out folder with the filename guid.xml.
Other Resources
Pipelines (BizTalk Server Samples Folder)