The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Indigo for Dummies

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Sam Gentile

Posts: 1605
Nickname: managedcod
Registered: Sep, 2003

Sam Gentile is a Microsoft .NET Consultant who has been working with .NET since the earliest
Indigo for Dummies Posted: Jun 22, 2005 5:31 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Sam Gentile.
Original Post: Indigo for Dummies
Feed Title: Sam Gentile's Blog
Feed URL: http://samgentile.com/blog/Rss.aspx
Feed Description: .NET and Software Development from an experienced perspective - .NET/CLR, Rotor, Interop, MC+/C++, COM+, ES, Mac OS X, Extreme Programming and More!
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Sam Gentile
Latest Posts From Sam Gentile's Blog

Advertisement

There are four simple steps to creating an Indigo Service:

  1. Define the service contract.
  2. Implement the contract.
  3. Create an endpoint or endpoints.
  4. Run the service. You can run the service either as a self-hosted service or as an IIS-hosted service.

So simple right? Well with the RC1 WinFx SDK Tool integration into Whidbey, even your mother can do it! Just select File | New Web Site | Indigo Service, select your language flavor (why is there J# and no C++/CLI???) and location and presto! You now have a full Indigo service with wsProfileBinding which means HTTP endpoint and WSI-I compliant. Not a single line of code or config!! No angle brackets!

using System;

using System.ServiceModel;

// An Indigo service consists of a contract (defined below as IMyService),

// a class which implements that interface (see MyService),

// and configuration entries that specify behaviors associated with

// that implementation (see in web.config)

[ServiceContract()]

public interface IMyService

{

     [OperationContract]

     string MyOperation1(string myValue1);

}

public class MyService : IMyService

{

     public string MyOperation1(string myValue1)

     {

           return "Hello: " + myValue1;

     }

}

 

Read: Indigo for Dummies

Topic: Can TDD help managing and guiding off-shore teams? Previous Topic   Next Topic Topic: TechEd 2005 - Visual Studio 2005 Team System Presentations

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use