码迷,mamicode.com
首页 > 其他好文 > 详细

Dynamic CRM 2013学习笔记(二十二)插件里调用WCF服务

时间:2014-12-28 23:37:31      阅读:211      评论:0      收藏:0      [点我收藏+]

标签:

 

1. 添加service:

技术分享 

 

2.调用WCF

BasicHttpBinding myBinding = new BasicHttpBinding();
myBinding.Name = "BasicHttpBinding_IAuthService";
myBinding.Security.Mode = BasicHttpSecurityMode.None;
myBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None;
myBinding.Security.Transport.ProxyCredentialType = HttpProxyCredentialType.None;
myBinding.Security.Message.ClientCredentialType = BasicHttpMessageCredentialType.UserName; 
 
EndpointAddress endPointAddress = new EndpointAddress("http://xxxx/AuthService.svc");
AuthServiceClient client = new AuthServiceClient(myBinding, endPointAddress);
return client.CheckDateAuth(auth);

 

 

Dynamic CRM 2013学习笔记 系列汇总

Dynamic CRM 2013学习笔记(二十二)插件里调用WCF服务

标签:

原文地址:http://www.cnblogs.com/fengwenit/p/4190748.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!