Friday, July 4, 2014

WCF SERVICE WITH HTTP

Service application

Select console Application

Note: run the visual studio in Admin Mode only.

First add a reference
System.serviceModel

Go to program.cs and write the following code


Add a new class with name Job.cs




Add another class with name Demo.cs and inherit the interface



Output



Service is created.
Client application.
Select console application
And first add the reference  system.serviceModel
And write the following code in Program.cs
Add the namespace

using System.ServiceModel;



Now, run the service application first and then run the client application both should be in running only.


No comments:

Post a Comment

Thank you for visiting my blog

Python -3

  Lists It is used to store Collection of data. Lists are created using square brackets: List Items Order cannot be changed. It can have dup...