time 
设为首页】【收藏本站
当前位置: 主页 > ERP > CRM > Dynamic CRM 2013学习记录(22)插件里调用WCF服务

Dynamic CRM 2013学习记录(22)插件里调用WCF服务

时间:2015-01-08 17:19 点击:2671次 字体:[ ]




 

1. 添加service:

Dynamic CRM 2013学习记录(22)插件里调用WCF服务_www.fengfly.com 

 

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

 



本文地址 : http://www.fengfly.com/plus/view-215533-1.html
标签: 插件 WCF服务 Dynamic CRM 2013学
------分隔线----------------------------
最新评论 查看所有评论
发表评论 查看所有评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
验证码: