How to integrate BizTalk Server 2010 / 2013 with Service Bus for Windows Server

This solution shows how to integrate a BizTalk Server 2010/2013 application with Service Bus for Windows Server using the WCF-Custom adapter to exchange messages with external systems in a reliable, flexible, and scalable manner.

C# (5.3 MB)
 
 
 
 
 
4.7 Star
(6)
1,705 times
Add to favorites
6/20/2014
E-mail Twitter del.icio.us Digg Facebook

Solution explorer

C#
#region Copyright
//=======================================================================================
// Microsoft Business Platform Division Customer Advisory Team (CAT)  
//
// This sample is supplemental to the technical guidance published on the community
// blog at http://blogs.msdn.com/paolos. 
// 
// Author: Paolo Salvatori
//=======================================================================================
// Copyright © 2011 Microsoft Corporation. All rights reserved.
// 
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER 
// EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF 
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. YOU BEAR THE RISK OF USING IT.
//=======================================================================================
#endregion

#region Using Directives
using System.Runtime.Serialization;
#endregion

[assembly: ContractNamespace("http://windowsazure.cat.microsoft.com/samples/servicebusforwindowsserver",
                             ClrNamespace="Microsoft.WindowsAzure.CAT.Samples.ServiceBusForWindowsServer.DataContracts")]

namespace Microsoft.WindowsAzure.CAT.Samples.ServiceBusForWindowsServer.DataContracts
{   
    [DataContract(Name="Product", Namespace="http://windowsazure.cat.microsoft.com/samples/servicebusforwindowsserver")]
    public class Product : object, IExtensibleDataObject
    {
        #region Private Fields
        private ExtensionDataObject extensionDataField;
        private string id;
        private string name;
        private string price; 
        #endregion

        #region Public Constructors
        public Product()
        {
            id = null;
            name = null;
            price = null;
        }

        public Product(string id,
                       string name,
                       string price)
        {
            this.id = id;
            this.name = name;
            this.price = price;
        }
        #endregion

        #region Public Properties
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return extensionDataField;
            }
            set
            {
                extensionDataField = value;
            }
        }

        [DataMember(IsRequired = true, EmitDefaultValue = false)]
        public string Id
        {
            get
            {
                return id;
            }
            set
            {
                id = value;
            }
        }

        [DataMember(IsRequired = true, EmitDefaultValue = false)]
        public string Name
        {
            get
            {
                return name;
            }
            set
            {
                name = value;
            }
        }

        [DataMember(IsRequired = true, EmitDefaultValue = false)]
        public string Price
        {
            get
            {
                return price;
            }
            set
            {
                price = value;
            }
        } 
        #endregion
    }
}