I created wcf service to perform addition operation, its working fine in basichttp binding, i cant able to view that service in wshttp binding. I tested the wcf service using wcftestclient utility, it is showing only basic httpbinding. I attached the service and web.config for your reference. Kindly check the code and tell me the solution for this problem.
Service.cs
****************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
public class Service : IService
{
public int Add(int a,int b)
{
return a + b;
}
}
IService.cs
***************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
[ServiceContract]
public interface IService
{
[OperationContract]
int Add(int a, int b);
}
Web.config:
**************
Replies
Know the answer? Post it — somebody with the same question will find it here.