Samples

To download the updated BizTalk Server 2004 SDK, go to http://go.microsoft.com/fwlink/?LinkId=24723.

This section describes the more than 30 samples included in the Microsoft® BizTalk® Server 2004 Software Development Kit (SDK). This section provides detailed information about each sample, including instructions for building the sample, how to run it, and what results to expect.

The organization of this section is parallel to the organization of the SDK folders in which the samples themselves reside on your hard disk.

The samples documentation uses the path abbreviation <Samples Path> to denote the path to the samples in your installation. By default, this path is C:\Program Files\Microsoft BizTalk Server 2004\SDK\Samples, but can vary based on decisions made during installation.

Important  For the sake of simplicity, the samples in this SDK, and this documentation, assume that you are using a single computer developer installation of BizTalk Server. If you do not perform a complete installation of BizTalk Server 2004, some samples may not work properly.

The following samples are included in BizTalk Server 2004:

  • Adapters Folder
    • ExpenseReportSubmission Sample. Demonstrates how to submit a document to a BizTalk Server orchestration from a rich client such as Microsoft® Excel.
    • File Adapter Sample. Demonstrates how to write a .NET-based File adapter in Microsoft® Visual C#® .NET.
    • HTTP Adapter Sample. Demonstrates how to implement the request/response and solicit/response communication paradigms used in BizTalk Server 2004. This sample is meant as a framework for you to use in creating custom adapters.
    • HTTPRequestResponse Sample. Demonstrates how to use the BizTalk Server 2004 Internet Server Application Programming Interface (ISAPI) filter to receive a message such as an HTTP request, process the message, and issue a synchronous HTTP response.
    • HTTPSolicitResponse Sample. Demonstrates how to create a BizTalk Server orchestration that uses an ASP.NET application to accomplish one of its tasks.
    • Large Message to MSMQT Sample. Demonstrates how to send an XML document larger than 4 megabytes (MB) from MSMQ to MSMQT using the MQSendLargeMessage API implemented by MQRTLarge.dll.
    • MSMQC Adapter Sample. Demonstrates how to build and register an adapter and how to create an asynchronous transactional adapter for BizTalk Server 2004.
    • SendMail Sample. Demonstrates how you can use the Simple Mail Transfer Protocol (SMTP) adapter to send e-mail messages from within a BizTalk Server orchestration.
    • SendMSMQMessage Sample. Demonstrates how to send a message to a BizTalk Message Queuing port from a .NET-based application.
    • SQL Adapter Sample. Demonstrates how to use the BizTalk Server 2004 SQL Adapter.
    • SubmitDirect Sample. Demonstrates two ways to submit messages to BizTalk Server from .NET-based applications using adapters.
  • Admin Folder
    • Database Maintenance Sample. Demonstrates how to archive and restore sent and received message bodies, as well as delete entries in the Tracking database.
  • Admin\ExplorerOM Folder
    • DeleteParty Sample. Demonstrates how to delete a specified party.
    • UnenlistParties Sample. Demonstrates how to unenlist all of the parties associated with a deployed BizTalk assembly.
  • Admin\WMI Folder
    • Enable Receive Location Sample. Demonstrates how to enable a receive location and set the Transport Type and Address URI for that receive location.
    • Enlist Orchestration Sample. Demonstrates how to enlist an orchestration to a host.
    • Enumerate Receive Locations Sample. Demonstrates how to retrieve details about one or more receive locations.
    • Remove Receive Port Sample. Demonstrates how to remove one or more receive ports.
    • Remove Send Port Sample. Demonstrates how to unenlist and remove one or more send ports.
    • Set Send Handler Property Sample. Demonstrates how to set the XML configuration information for an SMTP send handler.
    • Start Send Port Sample. Demonstrates how to start a send port and set the Primary Transport Address when using the File adapter.
    • Stop Orchestration Sample. Demonstrates how to stop an orchestration and, optionally, to unenlist it.
  • Business Activity Monitoring Folder.
    • BAM API Sample. Demonstrates how a team works to implement Business Activity Management (BAM) in BizTalk Server 2004.
    • BAM End-to-End Sample. Demonstrates how to correlate events from multiple components (in this case, three orchestrations and a pipeline) using BAM.
    • BAM API from an Orchestration Expression Sample. This sample demonstrates how to use the BAM API from a BizTalk Server orchestration expression, how to track repetitive items inside a message as separate activity instances, and how to establish a relationship between BAM data tracked from an orchestration using a tracking profile and data tracked from the API.
  • Business Rules Folder
    • Business Rules Hello World1 Sample. Demonstrates how to create, save, load, and run a BizTalk Server rule set using a sample set of facts.
    • Business Rules Hello World2 Sample. Demonstrates how to version, publish, and deploy an XML rule set to the shared SQL rule store, use the Policy object, and perform dynamic policy updates.
    • Loans Processing Using Business Rules Sample. Demonstrates how to use a BizTalk Server rule set and facts within an orchestration to calculate values for fields within an instance message.
    • Medical Claims Processing and Testing Policies Sample. Demonstrates how to create a multi-rule rule set that examines facts derived from a database table and the inbound document.
  • HWS Folder
    • Actions Sample. Demonstrates how to develop actions for Human Workflow Services (HWS).
    • Active Directory Fact Retriever Sample. Demonstrates how to implement an IFactRetriever interface to connect to a Microsoft® Active Directory® directory service data store to use with HWS.
    • Activity Model Designer API and Client Component Sample. Demonstrates how to use the Activity Model Designer API exposed by HWS to design an activity model, and includes a client component to demonstrate how a user participates in an activity flow.
  • Messaging Folder
    • CBRSample Sample. Demonstrates how to route instance messages based on their content.
  • Orchestrations Folder
    • BPEL Import Sample. Demonstrates how to create an orchestration from a Business Process Execution Language (BPEL) process description and its related artifacts.
    • CallOrchestration Sample. Demonstrates how to call one BizTalk Server orchestration from another orchestration.
    • Compensation Sample. Demonstrates how to use the compensation shape in an orchestration.
    • ConsumeWebService Sample. Demonstrates how to invoke a Web service from within a BizTalk Server orchestration.
    • ExposeWebService Sample. Demonstrates how to expose a BizTalk Server orchestration as a Web service.
    • HelloWorld Sample. Demonstrates how BizTalk Server processes XML messages into related but distinct types of XML messages using orchestrations and maps.
    • MethodCall Sample. Demonstrates how to call a .NET-based method from a BizTalk Server orchestration.
    • PartyResolution Sample. Demonstrates how to use BizTalk Server orchestrations in conjunction with party resolution to route instance messages.
  • Pipelines Folder
    • Arbitrary XPath Property Handler Sample. Demonstrates how to write a custom pipeline component to promote specific properties on an XML document that is submitted to BizTalk Server.
    • CustomComponent Sample. Demonstrates how to create and use a custom pipeline component that modifies a streamed message.
    • Custom Party Resolution Sample. Demonstrates how to write a custom pipeline component to resolve a custom party.
    • MIME Sample. Demonstrates how messages can be MIME-encoded using BizTalk Server pipelines.
    • Schema Resolver Component Sample. Demonstrates how to extend the functionality of the BizTalk Server 2004 flat file disassembler component.
    • XSLT Transform Component Sample. Demonstrates how to write a custom pipeline component to transform an XML message using XSLT.
  • Pipelines\AssemblerDisassembler Folder
    • FlatFileReceive Sample. Demonstrates how BizTalk processes delimited flat file messages into the equivalent XML messages using pipelines.
    • EnvelopeProcessing Sample. Demonstrates how BizTalk Server uses pipelines to process flat file messages into XML messages with envelopes.
    • FlatFileSend Sample. Demonstrates how BizTalk Server processes XML messages into the equivalent positional flat file messages using pipelines.
  • SSO Folder
    • HTTPSSO Sample. Demonstrates how to use Enterprise Single Sign-On (SSO) with the BizTalk Server 2004 HTTP adapter.
    • Manage Sample. Demonstrates how to construct .xml files that you can use with the command-line utility ssomanage.exe to perform administration operations.
  • XML Tools Folder
    • Extending Mapper Sample. Demonstrates how to use and extend BizTalk Mapper.
    • Custom Functoid Sample. Demonstrates how to write a custom functoid for BizTalk Mapper.

To download updated BizTalk Server 2004 Help from www.microsoft.com, go to http://go.microsoft.com/fwlink/?linkid=20616.

Copyright © 2004 Microsoft Corporation.
All rights reserved.
Show: