Quantcast
Viewing all articles
Browse latest Browse all 72043

Add credentials using Reflections to a service call

Hi

I think I am not setting the credentials correctly using reflections for a service call (Dynamics AX 2009 & C#). Do I need to bind the code below back to the propxyService

PropertyInfo credentialsPropertyInfo = proxyService.ProxyType.GetProperty(ClientCredentials); ClientCredentials cred = (ClientCredentials)credentialsPropertyInfo.GetValue(proxyService.ObjectInstance, null); cred.Windows.ClientCredential = new System.Net.NetworkCredential(domainUsernameLogin, password);


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>