Posts

Showing posts from August, 2013

Simple Self Hosted WCF Service in C#

Image
Self Hosting :   In this post we will explain about self host service using console application in windows application. This referred as self hosting WCF service, the exact meaning of Self Hosted is provides the user to host the service in any application that could be Console Application or Windows forms etc. Earlier we saw about What is WCF service on dot net platform. We can host WCF service in IIS and windows service also. Service can also be in-pro i.e. client and service in the same process. Now let's us create the WCF service which is hosted in Console application. We will also look in to creating proxy using   'Client Base'  class. Step 1 :     First let's start create the Service contract and it implementation. Create a console application and name it as WCF_NewsService. This is simple service which return News . Step 2 :   Add the System.ServiceModel and System.runtime.serialization reference to the project. Step 3 : ...

Simple WCF Service

Whats is the WCF Download Newsarticle Build Service Oriented Applications The application in this scenario is connected. The leading approach to building connected applications is service orientation. No doubt, you have heard of Service Oriented Architecture (SOA), but what is a service-oriented application? A service is a program that performs a task and that a client application can communicate with through well-defined messages. To call a Web or WCF service, the client passes it a message, which consists of XML. The message will typically include a request for the service to perform an action, such as retrieve or update the inventory information for a product. If the service returns data to the client, it passes back a message, also consisting of XML. The client and the service need to agree on what the XML will look like. The most common message format is Simple Object Access Protocol (SOAP). SOAP defines the format of XML request and reply messages and how clients and ser...