This is a mirror of official site: http://jasper-net.blogspot.com/

Walkthrough on creating WCF 4.0 Service and Hosting in IIS 7.5

| Thursday, March 3, 2011
Objective

This article will give step by step walkthrough

How to create a basic WCF 4.0 Service?
How to host WCF Service in IIS 7.5?
Hot to test service in a client.
Create WCF Service

Create WCF service. Open visual studio select new project and then from WCF tab select WCF Service application to create a new WCF service.
http://beyondrelational.com/images/service_and_hosting_iis.bmp

Delete the default code created by WCF from IService1 and Service1.svc.cs

a. So delete the data contract
b. Modify the service contract as below. Just make one operation contract to return a string .

IService1.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
namespace WcfService5
{
   [ServiceContract]
   public interface IService1
   {
       [OperationContract]
       string GetMessage();
     
   }  
}

Read more: Beyond Relational

Posted via email from Jasper-net

1 comments:

Anonymous said...

Wе can also rеplаce are table lаmps with that one
as іt looking good and іnсrеases the grace
of room alsο. With the ѕame appliancе you can proѵide сomfort as well as light the room with it.
These uѕe incаndеscent bulbs for a ѕoft warm light.


Hеrе is my site ceiling fans with lights amazon