开发者

XABP and WCF wsHttpBinding

开发者 https://www.devze.com 2022-12-21 18:42 出处:网络
How开发者_运维知识库 can I use WCF wsHttpBinding on my WPF Browser application?It works normally as it is on Windows application project and ASP.Net application. You just need to add ServiceReference

How开发者_运维知识库 can I use WCF wsHttpBinding on my WPF Browser application?


It works normally as it is on Windows application project and ASP.Net application. You just need to add ServiceReference to your xbap project pointing to your wcf service and Visual Studio will automatically generate the bindings (of wsHttpBinding type) and client endpoint pointing to your service on the app.config (xbap also uses app.config).

Then on your xbap page's codebehind, just do the usual coduing on consuming WCF services.

0

精彩评论

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

关注公众号