Server static void Main(string[] args) { Uri baseAddress = new Uri("http://localhost:8000"); WebServiceHost svcHost = new WebServiceHost(typeof(CalcService), baseAddr...
From : https://www.c-sharpcorner.com/UploadFile/dhananjaycoder/how-to-enable-rest-and-soap-both-on-the-same-wcf-service/ How to Enable REST and SOAP Both On The Same WCF Service In this post I will...
Interface using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Web; using Sys...
Client http://localhost:8000/Service1.svc/Rest/add/9/3 GET http://localhost:8000/Service1.svc/Rest/add/9/3 HTTP/1.1 Host: localhost:8000 Connection: keep-alive Upgrade-Insecure-Requests: 1 User-Agen...
Interface using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Web; using Syste...