Posts

Showing posts with the label Web Request from Sandbox mode in Dynamics CRM

accessing wcf-web service from PlugIns or Custom Workflows under Sandbox Isolation Mode at Dynamics CRM

If you want to make an external web service call inside PlugIn or Workflow in dynamics CRM (even under sandbox) , Use following code at your PlugIn or Custom Workflows; edwed wedwed                          try                         {                             BasicHttpBinding httpbinding = new BasicHttpBinding(BasicHttpSecurityMode.None);                             httpbinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None;                             httpbinding.Security.Transport.ProxyCredentialType = HttpProxyCredentialType.None;                             httpbinding.CloseTimeout = new TimeSpan(0, 5, 0);                             System.ServiceModel.Channels.Binding binding = httpbinding;                             System.ServiceModel.EndpointAddress remoteAddress = new EndpointAddress("http://abc.com.tr/xyzService.svc");                             xyzServiceClient client = new xyzServiceClient(binding, remoteAdd