You are on page 1of 2

WCF Hosting

-----------
Can be hosted in IIS 5.1 on win xp
Can be hosted in IIS 6 on win 2003
Can be hosted in IIS 7 on vista or win 2008
Can also be hosted on Win Process activation service on win 2008
Self Hosted on COnsole application, windows service or on a windows forms/ WPF
--------------------------------------------------------------------------------
-------------
Difference in options of hosting
--------------------------------
1) In IIS, WAS and Self Hosted all are managed process.
2) IIS and WAS allows configuration through web.config file. Self hosting requir
es code or app.config
Automatically the service is started and stopped.
3) IIS supports only HTTP, WAS and Self Hosting Supports HTTP, TCP, Named PIPES
and MSMQ
4) Idle Time management is taken care in IIS and WAS only.
5) Process recycling is taken care in IIS and WAS only.
--------------------------------------------------------------------------------
----------------
Diff between sql 2005 & 2008
--------------------------------------------------------------------------------
----------------
ServiceContract
OperationContract
DataContract
FaultContract
MessageCOntract
namespace CustomersServiceLibrary
{
[ServiceContract]
public interface ICustService
{
[OperationContract]
List<Customer> ListCustomers();
[OperationContract]
CustomerDetails GetCUstomerDetails(string custId);
[OperationCOntract]
bool SaveChanges(string custId, string companyName, string contactName,
string title);
}
https://home.mcafee.com/Secure/Protected/Login.aspx
abhijith_madhukar@mcafee.com
Mcafee001
[DataContract]
public class Customer
{
[DataMember]
public string CustomerId { get; set; }
[DataMember]
publicc string CompanyName { get; set; }
}
[DataContract]
public class CustomerDetail
{
[DataMember]
public string CustomerId { get; set; }
[DataMember]
publicc string CompanyName { get; set; }
[DataMember]
public string ContactName { get; set; }
[DataMember]
public string ContactTitle { get; set; }
}
}

namespace CustomersServicelibrary
{
public class CustomersService : ICustService
{
private CustomerDetails custDetails = null;
private Customer cust = null;
private List<Customer> customers = null;
private string queryString = null;
private string updateString = null;
private int numRowsChanged = 0;
#region ICusotmer
}
}