Показать сообщение отдельно
Старый 06.07.2012, 18:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Регистрация: 28.10.2006
East Ocean - Technical: How to access Azure WCF Endpoint with CRM plugin
Источник: http://eastoceantechnical.blogspot.c...oint-with.html
==============

CRM plugin only support add service reference on run-time, which means we have to bind and generate the classes using code behind whenever we want to access it.

We can use the following sample code to create the binding in code behind.

BasicHttpBinding myBinding = new BasicHttpBinding();
myBinding.Name = "ARV.MyService";
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://eea5f8cbdbc749b0bcea2b6250cbae11.cloudapp.net/Myservice.svc");
MyServiceClient client = new MyServiceClient(myBinding, endPointAddress);
client.sendSMS();



Источник: http://eastoceantechnical.blogspot.c...oint-with.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.