I have the WSDL of a very simple WCF service (regular wshttp binding), I plan to build and host a simple mockup service in IIS so that I can proceed with my development, is there any quick way/ helpful tool to do this? Thanks
You don't need the service at all. Just use the interface and create mock service.
[ServiceContract]
public interface ICalculator
{
[OperationContract]
int Add(int a, int b);
}
public class MyMockCalculator : ICalculator
{
public int Add(int a, int b)
{
return 0;
}
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.