Access WCF service through ASP.NET
I have a WCF service which I would like to access using ASP.NET. The binding used in the WCF service is basicHttpBinding. Ho开发者_Go百科w may I do it? Any examples will be really appreciated.
Will it work fine if I create a proxy from the svcutil.exe and then use that class in an ASP.NET page?
You need to add a service reference in your asp.net website project (here named ServiceReference1) and then here's your client:
var serviceClient = new ServiceReference1.Service1Client();
精彩评论