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

Kubernetes

Prerequisites We assume anyone who wants to understand Kubernetes should have an understating of how the Docker works, how the Docker images...