Click here to Skip to main content
15,892,005 members
Articles / Database Development / SQL Server

Introducing WF4.0: Building Distributed Apps with WF 4.0 and WF 4.0 Services

Rate me:
Please Sign up or sign in to vote.
4.61/5 (10 votes)
30 Jun 2009CPOL18 min read 77.1K   2.3K   71  
Shows how to build new-design distributed applications with WF 4.0 and Data Services.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TestClient
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            CarRentalServiceReference.CarRentalDataContract contract = new TestClient.CarRentalServiceReference.CarRentalDataContract();
            contract.CarId = "Mercedes";
            contract.CustomerId = "012";
            CarRentalServiceReference.CarRentalServiceContractClient proxy = new TestClient.CarRentalServiceReference.CarRentalServiceContractClient();
            decimal? test = proxy.CheckPrice(contract);

            bool? test1 = proxy.BookCar("012");

        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
Lebanon Lebanon

Comments and Discussions