开发者

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();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜