You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ar...@apache.org on 2008/09/17 15:47:08 UTC

svn commit: r696292 [1/2] - in /incubator/qpid/trunk/qpid/dotnet/client-010/wcf: ./ Properties/ demo/ demo/wcfBookingClient/ demo/wcfBookingClient/Properties/ demo/wcfBookingServer/ demo/wcfBookingServer/Properties/ demo/wcfHelloClient/ demo/wcfHelloCl...

Author: arnaudsimon
Date: Wed Sep 17 06:47:06 2008
New Revision: 696292

URL: http://svn.apache.org/viewvc?rev=696292&view=rev
Log:
QPID-1281: Added wcf support + demos

Added:
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/Properties/
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/Properties/AssemblyInfo.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/ConfigDemo.suo   (with props)
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/Demo.suo   (with props)
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Form1.Designer.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Form1.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Form1.resx
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Program.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Properties/
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Properties/AssemblyInfo.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Properties/Resources.Designer.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Properties/Resources.resx
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Properties/Settings.Designer.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Properties/Settings.settings
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/wcBookingClient.csproj
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/Booking.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/IBooking.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/Order.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/Program.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/Properties/
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/Properties/AssemblyInfo.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/Receipt.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/wcfBookingServer.csproj
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/App.config
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/HelloClient.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/IHelloService.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/Program.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/Properties/
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/Properties/AssemblyInfo.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/wcfHelloClient.csproj
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/App.config
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/HelloService.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/IHelloService.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/Program.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/Properties/
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/Properties/AssemblyInfo.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/wcfHelloServer.csproj
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfRPC/
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfRPC/IUpperCase.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfRPC/Program.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfRPC/Properties/
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfRPC/Properties/AssemblyInfo.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfRPC/QpidBindingConfigurationElement.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfRPC/UpperCase.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfRPC/wcfRPC.csproj
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/model/
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/model/CommunicationOperation.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/model/QpidBinding.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/model/QpidChannelBase.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/model/QpidChannelFactory.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/model/QpidChannelListener.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/model/QpidChannelListenerBase.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/model/QpidInputChannel.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/model/QpidInputChannelBase.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/model/QpidOutputChannel.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/model/QpidOutputChannelBase.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/model/QpidTransportBindingElement.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/model/QpidTransportElement.cs
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/wcf.csproj
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/wcf.sln
    incubator/qpid/trunk/qpid/dotnet/client-010/wcf/wcf.suo   (with props)

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/Properties/AssemblyInfo.cs
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/Properties/AssemblyInfo.cs?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/Properties/AssemblyInfo.cs (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/Properties/AssemblyInfo.cs Wed Sep 17 06:47:06 2008
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following 
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Qpid WCF")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Apache Software Foundation")]
+[assembly: AssemblyProduct("Qpid WCF")]
+[assembly: AssemblyCopyright("Copyright © Apache Software Foundation 2008")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible 
+// to COM components.  If you need to access a type in this assembly from 
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("a39d56ec-7d81-48e1-9602-347a3ce6f638")]
+
+// Version information for an assembly consists of the following four values:
+//
+//      Major Version
+//      Minor Version 
+//      Build Number
+//      Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers 
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/ConfigDemo.suo
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/ConfigDemo.suo?rev=696292&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/ConfigDemo.suo
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/Demo.suo
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/Demo.suo?rev=696292&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/Demo.suo
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Form1.Designer.cs
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Form1.Designer.cs?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Form1.Designer.cs (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Form1.Designer.cs Wed Sep 17 06:47:06 2008
@@ -0,0 +1,164 @@
+namespace WindowsFormsBooking
+{
+    partial class Form1
+    {
+        /// <summary>
+        /// Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        /// Required method for Designer support - do not modify
+        /// the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            this.comboBox1 = new System.Windows.Forms.ComboBox();
+            this.label1 = new System.Windows.Forms.Label();
+            this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
+            this.label2 = new System.Windows.Forms.Label();
+            this.button1 = new System.Windows.Forms.Button();
+            this.richTextBox1 = new System.Windows.Forms.RichTextBox();
+            this.button2 = new System.Windows.Forms.Button();
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // comboBox1
+            // 
+            this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.comboBox1.FormattingEnabled = true;
+            this.comboBox1.Items.AddRange(new object[] {
+            "Hotel",
+            "Taxi",
+            "Train",
+            "Cinema",
+            "Theater",
+            "Restaurant"});
+            this.comboBox1.Location = new System.Drawing.Point(60, 20);
+            this.comboBox1.Name = "comboBox1";
+            this.comboBox1.Size = new System.Drawing.Size(76, 21);
+            this.comboBox1.TabIndex = 0;
+            this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            this.label1.Location = new System.Drawing.Point(23, 20);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(31, 13);
+            this.label1.TabIndex = 1;
+            this.label1.Text = "Type";
+            // 
+            // numericUpDown1
+            // 
+            this.numericUpDown1.Increment = new decimal(new int[] {
+            10,
+            0,
+            0,
+            0});
+            this.numericUpDown1.Location = new System.Drawing.Point(60, 49);
+            this.numericUpDown1.Maximum = new decimal(new int[] {
+            200,
+            0,
+            0,
+            0});
+            this.numericUpDown1.Minimum = new decimal(new int[] {
+            30,
+            0,
+            0,
+            0});
+            this.numericUpDown1.Name = "numericUpDown1";
+            this.numericUpDown1.Size = new System.Drawing.Size(76, 20);
+            this.numericUpDown1.TabIndex = 2;
+            this.numericUpDown1.Value = new decimal(new int[] {
+            30,
+            0,
+            0,
+            0});
+            this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged);
+            // 
+            // label2
+            // 
+            this.label2.AutoSize = true;
+            this.label2.Location = new System.Drawing.Point(23, 56);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(31, 13);
+            this.label2.TabIndex = 3;
+            this.label2.Text = "Price";
+            // 
+            // button1
+            // 
+            this.button1.Location = new System.Drawing.Point(142, 20);
+            this.button1.Name = "button1";
+            this.button1.Size = new System.Drawing.Size(40, 49);
+            this.button1.TabIndex = 4;
+            this.button1.Text = "Add";
+            this.button1.UseVisualStyleBackColor = true;
+            this.button1.Click += new System.EventHandler(this.button1_Click);
+            // 
+            // richTextBox1
+            // 
+            this.richTextBox1.ForeColor = System.Drawing.SystemColors.ControlText;
+            this.richTextBox1.Location = new System.Drawing.Point(27, 113);
+            this.richTextBox1.Name = "richTextBox1";
+            this.richTextBox1.Size = new System.Drawing.Size(155, 83);
+            this.richTextBox1.TabIndex = 5;
+            this.richTextBox1.Text = "";
+            // 
+            // button2
+            // 
+            this.button2.Location = new System.Drawing.Point(27, 81);
+            this.button2.Name = "button2";
+            this.button2.Size = new System.Drawing.Size(155, 29);
+            this.button2.TabIndex = 6;
+            this.button2.Text = "Receipt";
+            this.button2.UseVisualStyleBackColor = true;
+            this.button2.Click += new System.EventHandler(this.button2_Click);
+            // 
+            // Form1
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(211, 211);
+            this.Controls.Add(this.button2);
+            this.Controls.Add(this.richTextBox1);
+            this.Controls.Add(this.button1);
+            this.Controls.Add(this.label2);
+            this.Controls.Add(this.numericUpDown1);
+            this.Controls.Add(this.label1);
+            this.Controls.Add(this.comboBox1);
+            this.Name = "Form1";
+            this.Text = "Booking Client";
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
+            this.ResumeLayout(false);
+            this.PerformLayout();
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.ComboBox comboBox1;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.NumericUpDown numericUpDown1;
+        private System.Windows.Forms.Label label2;
+        private System.Windows.Forms.Button button1;
+        private System.Windows.Forms.RichTextBox richTextBox1;
+        private System.Windows.Forms.Button button2;
+    }
+}
+

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Form1.cs
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Form1.cs?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Form1.cs (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Form1.cs Wed Sep 17 06:47:06 2008
@@ -0,0 +1,74 @@
+using System;
+using System.ServiceModel;
+using System.Windows.Forms;
+using org.apache.qpid.wcf.demo;
+using org.apache.qpid.wcf.model;
+
+namespace WindowsFormsBooking
+{
+    public partial class Form1 : Form
+    {
+        private ChannelFactory<IBooking> _fac;
+        private readonly Order _order = new Order();
+        private IBooking _calc;
+         
+        public Form1()
+        {
+            InitializeComponent();
+            _calc = StartClient(new QpidBinding("192.168.1.14", 5673));
+            _order.Type = "Default";
+            _order.Price = 0;
+        }
+
+        public IBooking StartClient(System.ServiceModel.Channels.Binding binding)
+        {
+            IBooking res = null;
+            try
+            {
+                Console.WriteLine("  Starting Client...");
+                _fac = new ChannelFactory<IBooking>(binding, "soap.amqp:///Booking");
+                _fac.Open();
+                res = _fac.CreateChannel();
+                Console.WriteLine("[DONE]");
+            }
+            catch (Exception e)
+            {
+                Console.WriteLine(e);
+            }
+            return res;
+        }
+
+        public void StopClient(IBooking client)
+        {
+            Console.WriteLine("  Stopping Client...");
+            ((System.ServiceModel.Channels.IChannel)client).Close();
+            _fac.Close();
+            Console.WriteLine("[DONE]");
+        }
+
+        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
+        {
+            _order.Type = ((ComboBox) sender).SelectedItem.ToString();
+        }
+
+        private void numericUpDown1_ValueChanged(object sender, EventArgs e)
+        {
+            _order.Price = (double) ((NumericUpDown) sender).Value;
+        }
+
+        private void button1_Click(object sender, EventArgs e)
+        {
+            _calc.Add(_order);
+        }
+
+        private void button2_Click(object sender, EventArgs e)
+        {
+            Receipt r = _calc.Checkout();
+            richTextBox1.Text = r.Summary + "\n" + "Total Price = " + r.Price;            
+            // reset
+            _calc = StartClient(new QpidBinding("192.168.1.14", 5673));            
+        }
+
+      
+    }
+}

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Form1.resx
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Form1.resx?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Form1.resx (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Form1.resx Wed Sep 17 06:47:06 2008
@@ -0,0 +1,123 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <metadata name="richTextBox1.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+</root>
\ No newline at end of file

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Program.cs
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Program.cs?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Program.cs (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Program.cs Wed Sep 17 06:47:06 2008
@@ -0,0 +1,21 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Windows.Forms;
+
+namespace WindowsFormsBooking
+{
+    static class Program
+    {
+        /// <summary>
+        /// The main entry point for the application.
+        /// </summary>
+        [STAThread]
+        static void Main()
+        {
+            Application.EnableVisualStyles();
+            Application.SetCompatibleTextRenderingDefault(false);
+            Application.Run(new Form1());
+        }
+    }
+}

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Properties/AssemblyInfo.cs
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Properties/AssemblyInfo.cs?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Properties/AssemblyInfo.cs (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Properties/AssemblyInfo.cs Wed Sep 17 06:47:06 2008
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following 
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Booking Client")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Apache Software Foundation")]
+[assembly: AssemblyProduct("Booking Client")]
+[assembly: AssemblyCopyright("Copyright © Apache Software Foundation 2008")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible 
+// to COM components.  If you need to access a type in this assembly from 
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("fc8b1e0e-1ca9-46fe-9aae-b1ed046716b8")]
+
+// Version information for an assembly consists of the following four values:
+//
+//      Major Version
+//      Minor Version 
+//      Build Number
+//      Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers 
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Properties/Resources.Designer.cs
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Properties/Resources.Designer.cs?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Properties/Resources.Designer.cs (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Properties/Resources.Designer.cs Wed Sep 17 06:47:06 2008
@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//     Runtime Version:2.0.50727.1433
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace WindowsFormsBooking.Properties
+{
+
+
+    /// <summary>
+    ///   A strongly-typed resource class, for looking up localized strings, etc.
+    /// </summary>
+    // This class was auto-generated by the StronglyTypedResourceBuilder
+    // class via a tool like ResGen or Visual Studio.
+    // To add or remove a member, edit your .ResX file then rerun ResGen
+    // with the /str option, or rebuild your VS project.
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
+    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+    internal class Resources
+    {
+
+        private static global::System.Resources.ResourceManager resourceMan;
+
+        private static global::System.Globalization.CultureInfo resourceCulture;
+
+        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+        internal Resources()
+        {
+        }
+
+        /// <summary>
+        ///   Returns the cached ResourceManager instance used by this class.
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        internal static global::System.Resources.ResourceManager ResourceManager
+        {
+            get
+            {
+                if ((resourceMan == null))
+                {
+                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WindowsFormsBooking.Properties.Resources", typeof(Resources).Assembly);
+                    resourceMan = temp;
+                }
+                return resourceMan;
+            }
+        }
+
+        /// <summary>
+        ///   Overrides the current thread's CurrentUICulture property for all
+        ///   resource lookups using this strongly typed resource class.
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        internal static global::System.Globalization.CultureInfo Culture
+        {
+            get
+            {
+                return resourceCulture;
+            }
+            set
+            {
+                resourceCulture = value;
+            }
+        }
+    }
+}

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Properties/Resources.resx
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Properties/Resources.resx?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Properties/Resources.resx (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Properties/Resources.resx Wed Sep 17 06:47:06 2008
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+</root>
\ No newline at end of file

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Properties/Settings.Designer.cs
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Properties/Settings.Designer.cs?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Properties/Settings.Designer.cs (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Properties/Settings.Designer.cs Wed Sep 17 06:47:06 2008
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//     Runtime Version:2.0.50727.1433
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace WindowsFormsBooking.Properties
+{
+
+
+    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")]
+    internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+    {
+
+        private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+        public static Settings Default
+        {
+            get
+            {
+                return defaultInstance;
+            }
+        }
+    }
+}

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Properties/Settings.settings
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Properties/Settings.settings?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Properties/Settings.settings (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/Properties/Settings.settings Wed Sep 17 06:47:06 2008
@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='utf-8'?>
+<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
+  <Profiles>
+    <Profile Name="(Default)" />
+  </Profiles>
+  <Settings />
+</SettingsFile>

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/wcBookingClient.csproj
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/wcBookingClient.csproj?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/wcBookingClient.csproj (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingClient/wcBookingClient.csproj Wed Sep 17 06:47:06 2008
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>9.0.21022</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{4086B3FE-F745-4DCC-952A-682CAE01F4C9}</ProjectGuid>
+    <OutputType>WinExe</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>WindowsFormsBooking</RootNamespace>
+    <AssemblyName>Booking Client</AssemblyName>
+    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+    <FileAlignment>512</FileAlignment>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+    <Reference Include="System.Core">
+      <RequiredTargetFramework>3.5</RequiredTargetFramework>
+    </Reference>
+    <Reference Include="System.ServiceModel">
+      <RequiredTargetFramework>3.0</RequiredTargetFramework>
+    </Reference>
+    <Reference Include="System.Xml.Linq">
+      <RequiredTargetFramework>3.5</RequiredTargetFramework>
+    </Reference>
+    <Reference Include="System.Data.DataSetExtensions">
+      <RequiredTargetFramework>3.5</RequiredTargetFramework>
+    </Reference>
+    <Reference Include="System.Data" />
+    <Reference Include="System.Deployment" />
+    <Reference Include="System.Drawing" />
+    <Reference Include="System.Windows.Forms" />
+    <Reference Include="System.Xml" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Form1.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="Form1.Designer.cs">
+      <DependentUpon>Form1.cs</DependentUpon>
+    </Compile>
+    <Compile Include="Program.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+    <EmbeddedResource Include="Form1.resx">
+      <DependentUpon>Form1.cs</DependentUpon>
+      <SubType>Designer</SubType>
+    </EmbeddedResource>
+    <EmbeddedResource Include="Properties\Resources.resx">
+      <Generator>ResXFileCodeGenerator</Generator>
+      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+      <SubType>Designer</SubType>
+    </EmbeddedResource>
+    <Compile Include="Properties\Resources.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DependentUpon>Resources.resx</DependentUpon>
+    </Compile>
+    <None Include="Properties\Settings.settings">
+      <Generator>SettingsSingleFileGenerator</Generator>
+      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
+    </None>
+    <Compile Include="Properties\Settings.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DependentUpon>Settings.settings</DependentUpon>
+      <DesignTimeSharedInput>True</DesignTimeSharedInput>
+    </Compile>
+  </ItemGroup>
+  <ItemGroup>
+    <ProjectReference Include="..\..\wcf.csproj">
+      <Project>{F1D80D9D-FE22-4213-A760-BFFDE7D131DD}</Project>
+      <Name>wcf</Name>
+    </ProjectReference>
+    <ProjectReference Include="..\wcfSession\wcfBookingServer.csproj">
+      <Project>{B34E21C4-A742-4886-8569-1A89490E093E}</Project>
+      <Name>wcfBookingServer</Name>
+    </ProjectReference>
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>
\ No newline at end of file

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/Booking.cs
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/Booking.cs?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/Booking.cs (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/Booking.cs Wed Sep 17 06:47:06 2008
@@ -0,0 +1,62 @@
+/*
+*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements.  See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership.  The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License.  You may obtain a copy of the License at
+*
+*   http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied.  See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*
+*/
+
+using System;
+using System.Collections.Generic;
+using System.ServiceModel;
+
+
+namespace org.apache.qpid.wcf.demo
+{
+    [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession)]
+    public class Booking : IBooking
+    {
+        private Guid _id;
+        private List<Order> _orders;
+
+        public Booking()
+        {
+            _id = Guid.NewGuid();
+            _orders = new List<Order>();
+        }
+
+        public void Add(Order order)
+        {
+            _orders.Add(order);
+        }
+
+        public Receipt Checkout()
+        {
+            var r = new Receipt();
+            foreach (Order order in _orders)
+            {
+                r.Price += order.Price;
+                r.Summary = r.Summary + " \n " + order.Type + " Price: " + order.Price;
+            }
+            return r;
+        }
+
+        public Guid Id
+        {
+            get { return _id; }
+        }
+    }
+}

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/IBooking.cs
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/IBooking.cs?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/IBooking.cs (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/IBooking.cs Wed Sep 17 06:47:06 2008
@@ -0,0 +1,43 @@
+/*
+*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements.  See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership.  The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License.  You may obtain a copy of the License at
+*
+*   http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied.  See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*
+*/
+
+using System;
+using System.ServiceModel;
+
+namespace org.apache.qpid.wcf.demo
+{        
+    [ServiceContract(SessionMode=SessionMode.Required)]
+        public interface IBooking
+    {
+        [OperationContract]
+        void Add(Order order);
+
+        [OperationContract]
+        Receipt Checkout();
+        
+        Guid Id
+        {
+            [OperationContract]
+            get;
+        }
+    }
+    
+}

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/Order.cs
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/Order.cs?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/Order.cs (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/Order.cs Wed Sep 17 06:47:06 2008
@@ -0,0 +1,45 @@
+/*
+*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements.  See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership.  The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License.  You may obtain a copy of the License at
+*
+*   http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied.  See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*
+*/
+using System.Runtime.Serialization;
+ 
+namespace org.apache.qpid.wcf.demo
+{
+    [DataContract]
+    public sealed class Order
+    {
+        private double _price;
+        private string _type;
+
+        [DataMember]
+        public double Price
+        {
+            get { return _price; }
+            set { _price = value; }
+        }
+
+        [DataMember]
+        public string Type
+        {
+            get { return _type; }
+            set { _type = value; }
+        }
+    }
+}

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/Program.cs
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/Program.cs?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/Program.cs (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/Program.cs Wed Sep 17 06:47:06 2008
@@ -0,0 +1,98 @@
+/*
+*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements.  See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership.  The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License.  You may obtain a copy of the License at
+*
+*   http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied.  See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*
+*/
+
+using System;
+using System.ServiceModel;
+using System.ServiceModel.Channels;
+using System.Threading;
+using org.apache.qpid.wcf.model;
+
+
+namespace org.apache.qpid.wcf.demo
+{
+    internal class Program
+    {
+        private ServiceHost _service;
+        private ChannelFactory<IBooking> fac;
+
+        public void StartService(Binding binding)
+        {
+            try
+            {
+                Console.WriteLine("  Binding Service...");
+                _service = new ServiceHost(typeof(Booking), new Uri("soap.amqp:///"));
+                _service.AddServiceEndpoint(typeof(IBooking), binding, "Booking");
+                _service.Open();
+                Thread.Sleep(500);
+                Console.WriteLine("[DONE]");
+            }
+            catch (Exception e)
+            {
+                Console.WriteLine(e);
+            }
+        }
+
+        public void StopService()
+        {
+            Console.WriteLine("  Stopping Service...");
+            _service.Close();
+            Console.WriteLine("[DONE]");
+        }
+
+        public IBooking StartClient(Binding binding)
+        {
+            IBooking res = null;
+            try
+            {
+                Console.WriteLine("  Starting Client...");
+                fac = new ChannelFactory<IBooking>(binding, "soap.amqp:///Booking");
+                fac.Open();
+                res = fac.CreateChannel();
+                Console.WriteLine("[DONE]");
+            }
+            catch (Exception e)
+            {
+                Console.WriteLine(e);
+            }
+            return res;
+        }
+
+        public void StopClient(IBooking client)
+        {
+            Console.WriteLine("  Stopping Client...");
+            ((IChannel)client).Close();
+            fac.Close();
+            Console.WriteLine("[DONE]");
+        }
+
+        private static void Main(string[] args)
+        {
+            var p = new Program();
+
+            Binding binding = new QpidBinding("192.168.1.14", 5673);
+            p.StartService(binding);
+
+            Console.ReadLine();
+
+            p.StopService();
+        }
+    }
+}

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/Properties/AssemblyInfo.cs
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/Properties/AssemblyInfo.cs?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/Properties/AssemblyInfo.cs (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/Properties/AssemblyInfo.cs Wed Sep 17 06:47:06 2008
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following 
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Booking Server")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Apache Software Foundation")]
+[assembly: AssemblyProduct("Booking Server")]
+[assembly: AssemblyCopyright("Copyright © Apache Software Foundation 2008")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible 
+// to COM components.  If you need to access a type in this assembly from 
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("12ef158b-ac5f-43b3-99f6-e4a4c096d6f8")]
+
+// Version information for an assembly consists of the following four values:
+//
+//      Major Version
+//      Minor Version 
+//      Build Number
+//      Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers 
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/Receipt.cs
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/Receipt.cs?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/Receipt.cs (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/Receipt.cs Wed Sep 17 06:47:06 2008
@@ -0,0 +1,46 @@
+/*
+*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements.  See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership.  The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License.  You may obtain a copy of the License at
+*
+*   http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied.  See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*
+*/
+
+using System.Runtime.Serialization;
+
+namespace org.apache.qpid.wcf.demo
+{
+    [DataContract]
+    public sealed class Receipt
+    {
+        private double _price;
+        private string _summary;
+
+        [DataMember]
+        public double Price
+        {
+            get { return _price; }
+            set { _price = value; }
+        }
+
+        [DataMember]
+        public string Summary
+        {
+            get { return _summary; }
+            set { _summary = value; }
+        }
+    }
+}

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/wcfBookingServer.csproj
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/wcfBookingServer.csproj?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/wcfBookingServer.csproj (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfBookingServer/wcfBookingServer.csproj Wed Sep 17 06:47:06 2008
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>9.0.21022</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{B34E21C4-A742-4886-8569-1A89490E093E}</ProjectGuid>
+    <OutputType>Exe</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>wcfSession</RootNamespace>
+    <AssemblyName>Booking Server</AssemblyName>
+    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+    <FileAlignment>512</FileAlignment>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+    <Reference Include="System.Core">
+      <RequiredTargetFramework>3.5</RequiredTargetFramework>
+    </Reference>
+    <Reference Include="System.Drawing" />
+    <Reference Include="System.Runtime.Serialization">
+      <RequiredTargetFramework>3.0</RequiredTargetFramework>
+    </Reference>
+    <Reference Include="System.ServiceModel">
+      <RequiredTargetFramework>3.0</RequiredTargetFramework>
+    </Reference>
+    <Reference Include="System.Windows.Forms" />
+    <Reference Include="System.Xml.Linq">
+      <RequiredTargetFramework>3.5</RequiredTargetFramework>
+    </Reference>
+    <Reference Include="System.Data.DataSetExtensions">
+      <RequiredTargetFramework>3.5</RequiredTargetFramework>
+    </Reference>
+    <Reference Include="System.Data" />
+    <Reference Include="System.Xml" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Booking.cs" />
+    <Compile Include="Receipt.cs" />
+    <Compile Include="IBooking.cs" />
+    <Compile Include="Order.cs" />
+    <Compile Include="Program.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <ProjectReference Include="..\..\wcf.csproj">
+      <Project>{F1D80D9D-FE22-4213-A760-BFFDE7D131DD}</Project>
+      <Name>wcf</Name>
+    </ProjectReference>
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>
\ No newline at end of file

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/App.config
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/App.config?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/App.config (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/App.config Wed Sep 17 06:47:06 2008
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+  <system.serviceModel>
+    
+    <client>
+      <endpoint address="soap.amqp:///Hello" 
+                binding="customBinding"
+                bindingConfiguration="QpidBinding"
+                contract="org.apache.qpid.wcf.demo.IHelloContract"
+                name="HelloService" />
+    </client>
+
+
+    <bindings>
+      <customBinding>
+        <binding name="QpidBinding">
+          <textMessageEncoding />
+          <QpidTransport
+               host="192.168.1.14"
+               port="5673" />
+        </binding>
+      </customBinding>
+    </bindings>
+
+    <extensions>
+      <bindingElementExtensions>
+        <add
+          name="QpidTransport"
+           type="org.apache.qpid.wcf.model.QpidTransportElement, qpidWCFModel"/>
+      </bindingElementExtensions>
+    </extensions>
+
+
+  </system.serviceModel>
+</configuration>
\ No newline at end of file

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/HelloClient.cs
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/HelloClient.cs?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/HelloClient.cs (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/HelloClient.cs Wed Sep 17 06:47:06 2008
@@ -0,0 +1,36 @@
+/*
+*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements.  See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership.  The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License.  You may obtain a copy of the License at
+*
+*   http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied.  See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*
+*/
+
+using System.ServiceModel;   
+
+namespace org.apache.qpid.wcf.demo
+{  
+    public class HelloClient : ClientBase<IHelloContract>, IHelloContract
+    {      
+        public HelloClient(string configurationName)
+            : base(configurationName) { }
+
+        public void Hello(string name)
+        {          
+            Channel.Hello(name);
+        }
+    }
+}

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/IHelloService.cs
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/IHelloService.cs?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/IHelloService.cs (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/IHelloService.cs Wed Sep 17 06:47:06 2008
@@ -0,0 +1,33 @@
+/*
+*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements.  See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership.  The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License.  You may obtain a copy of the License at
+*
+*   http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied.  See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*
+*/
+
+using System.ServiceModel;
+
+namespace org.apache.qpid.wcf.demo
+{
+    [ServiceContract]
+    public interface IHelloContract
+    {
+        [OperationContract(IsOneWay=true)]
+        void Hello(string name);
+    }
+   
+}

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/Program.cs
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/Program.cs?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/Program.cs (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/Program.cs Wed Sep 17 06:47:06 2008
@@ -0,0 +1,48 @@
+/*
+*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements.  See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership.  The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License.  You may obtain a copy of the License at
+*
+*   http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied.  See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*
+*/
+
+using System;
+
+namespace org.apache.qpid.wcf.demo
+{
+    class Program
+    {
+        static void Main(string[] args)
+        {
+            Console.Title = "Hello Service Client";
+            Console.ForegroundColor = ConsoleColor.White;
+            Console.WriteLine("Hello Service Client");
+            Console.ForegroundColor = ConsoleColor.Gray;
+            Console.WriteLine();            
+            // create a client using the configuration file App.config
+            var client = new HelloClient("HelloService");
+            Console.WriteLine("Client Saying Hello to Qpid");
+            client.Hello("Qpid");
+            Console.WriteLine("Client Saying Hello to AMQP");
+            client.Hello("AMQP");
+            // closing the client service 
+            client.ChannelFactory.Close();         
+            Console.WriteLine();
+            Console.Write("Press Enter to Exit...");
+            Console.ReadLine();
+        }
+    }
+}

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/Properties/AssemblyInfo.cs
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/Properties/AssemblyInfo.cs?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/Properties/AssemblyInfo.cs (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/Properties/AssemblyInfo.cs Wed Sep 17 06:47:06 2008
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following 
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Qpid WCF Hello Client")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Apache Software Foundation")]
+[assembly: AssemblyProduct("Qpid WCF Hello Client")]
+[assembly: AssemblyCopyright("Copyright © Apache Software Foundation 2008")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible 
+// to COM components.  If you need to access a type in this assembly from 
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("f7628695-280a-4689-ac6f-1186177f9a25")]
+
+// Version information for an assembly consists of the following four values:
+//
+//      Major Version
+//      Minor Version 
+//      Build Number
+//      Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers 
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/wcfHelloClient.csproj
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/wcfHelloClient.csproj?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/wcfHelloClient.csproj (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloClient/wcfHelloClient.csproj Wed Sep 17 06:47:06 2008
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>9.0.21022</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{A24E27DB-A38D-40C9-9879-8390B68C2F06}</ProjectGuid>
+    <OutputType>Exe</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>wcfHelloClient</RootNamespace>
+    <AssemblyName>Qpid WCF Hello Client</AssemblyName>
+    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+    <FileAlignment>512</FileAlignment>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+    <Reference Include="System.configuration" />
+    <Reference Include="System.ServiceModel">
+      <RequiredTargetFramework>3.0</RequiredTargetFramework>
+    </Reference>
+    <Reference Include="System.Data" />
+    <Reference Include="System.Xml" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="HelloClient.cs" />
+    <Compile Include="IHelloService.cs" />
+    <Compile Include="Program.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="App.config" />
+  </ItemGroup>
+  <ItemGroup>
+    <ProjectReference Include="..\..\wcf.csproj">
+      <Project>{F1D80D9D-FE22-4213-A760-BFFDE7D131DD}</Project>
+      <Name>wcf</Name>
+    </ProjectReference>
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>
\ No newline at end of file

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/App.config
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/App.config?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/App.config (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/App.config Wed Sep 17 06:47:06 2008
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+  <system.serviceModel>
+
+
+    <services>
+      <service name="org.apache.qpid.wcf.demo.HelloService">
+        <host>
+          <baseAddresses>
+            <add baseAddress="soap.amqp:///"   />
+          </baseAddresses>
+        </host>
+        <endpoint
+          address="Hello"
+          binding="customBinding"
+          bindingConfiguration="QpidBinding"
+          contract="org.apache.qpid.wcf.demo.IHelloContract"/>
+      </service>
+    </services>
+
+
+    <bindings>
+      <customBinding>
+        <binding name="QpidBinding">
+          <textMessageEncoding />
+          <QpidTransport
+               host="192.168.1.14"
+               port="5673" />
+        </binding>
+      </customBinding>
+    </bindings>
+
+    <extensions>
+      <bindingElementExtensions>
+        <add
+          name="QpidTransport"
+           type="org.apache.qpid.wcf.model.QpidTransportElement, qpidWCFModel"/>
+      </bindingElementExtensions>
+    </extensions>
+
+
+  </system.serviceModel>
+</configuration>
\ No newline at end of file

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/HelloService.cs
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/HelloService.cs?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/HelloService.cs (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/HelloService.cs Wed Sep 17 06:47:06 2008
@@ -0,0 +1,34 @@
+/*
+*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements.  See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership.  The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License.  You may obtain a copy of the License at
+*
+*   http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied.  See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*
+*/
+
+using System;
+
+namespace org.apache.qpid.wcf.demo
+{
+    public class HelloService : IHelloContract
+    {      
+        public void Hello(string name)
+        {
+            Console.WriteLine("Hello {0}!", name);
+           
+        }       
+    }
+}

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/IHelloService.cs
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/IHelloService.cs?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/IHelloService.cs (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/IHelloService.cs Wed Sep 17 06:47:06 2008
@@ -0,0 +1,32 @@
+/*
+*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements.  See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership.  The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License.  You may obtain a copy of the License at
+*
+*   http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied.  See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*
+*/
+using System.ServiceModel;
+
+namespace org.apache.qpid.wcf.demo
+{
+    [ServiceContract]
+    public interface IHelloContract
+    {
+        [OperationContract(IsOneWay=true)]
+        void Hello(string name);
+    }
+   
+}

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/Program.cs
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/Program.cs?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/Program.cs (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/Program.cs Wed Sep 17 06:47:06 2008
@@ -0,0 +1,47 @@
+/*
+*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements.  See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership.  The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License.  You may obtain a copy of the License at
+*
+*   http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied.  See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*
+*/
+
+using System;
+using System.ServiceModel;
+
+namespace org.apache.qpid.wcf.demo
+{
+    class Program
+    {
+        static void Main(string[] args)
+        {
+            Console.Title = "Hello Service Server";
+            Console.ForegroundColor = ConsoleColor.White;
+            Console.WriteLine("Hello Service Server");
+            Console.ForegroundColor = ConsoleColor.Gray;
+            Console.WriteLine();
+
+            var host = new ServiceHost(typeof(HelloService));
+            host.Open();
+
+            Console.WriteLine("Service Ready");
+            Console.WriteLine("Press Enter to Exit...");
+            Console.ReadLine();
+
+            host.Close();
+        }
+    }
+}

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/Properties/AssemblyInfo.cs
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/Properties/AssemblyInfo.cs?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/Properties/AssemblyInfo.cs (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/Properties/AssemblyInfo.cs Wed Sep 17 06:47:06 2008
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following 
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Qpid WCF Hello Server")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Apache Software Foundation")]
+[assembly: AssemblyProduct("Qpid WCF Hello Server")]
+[assembly: AssemblyCopyright("Copyright © Apache Software Foundation 2008")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible 
+// to COM components.  If you need to access a type in this assembly from 
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("afa87185-f224-4948-904c-b4f3cd19dadb")]
+
+// Version information for an assembly consists of the following four values:
+//
+//      Major Version
+//      Minor Version 
+//      Build Number
+//      Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers 
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

Added: incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/wcfHelloServer.csproj
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/wcfHelloServer.csproj?rev=696292&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/wcfHelloServer.csproj (added)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/wcf/demo/wcfHelloServer/wcfHelloServer.csproj Wed Sep 17 06:47:06 2008
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>9.0.21022</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{3EF848D7-5FAC-482C-922A-D4D45A4CCD2A}</ProjectGuid>
+    <OutputType>Exe</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>wcfHelloServer</RootNamespace>
+    <AssemblyName>Qpid WCF Hello Server</AssemblyName>
+    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+    <FileAlignment>512</FileAlignment>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+    <Reference Include="System.Core">
+      <RequiredTargetFramework>3.5</RequiredTargetFramework>
+    </Reference>
+    <Reference Include="System.ServiceModel">
+      <RequiredTargetFramework>3.0</RequiredTargetFramework>
+    </Reference>
+    <Reference Include="System.Xml.Linq">
+      <RequiredTargetFramework>3.5</RequiredTargetFramework>
+    </Reference>
+    <Reference Include="System.Data.DataSetExtensions">
+      <RequiredTargetFramework>3.5</RequiredTargetFramework>
+    </Reference>
+    <Reference Include="System.Data" />
+    <Reference Include="System.Xml" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="HelloService.cs" />
+    <Compile Include="IHelloService.cs" />
+    <Compile Include="Program.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <ProjectReference Include="..\..\wcf.csproj">
+      <Project>{F1D80D9D-FE22-4213-A760-BFFDE7D131DD}</Project>
+      <Name>wcf</Name>
+    </ProjectReference>
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="App.config" />
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>
\ No newline at end of file