How to use Microsoft Dynamics CRM in soup UI -
i new microsoft dynamics crm. trying connect demo account through rest api using soup ui. every time getting authorization failed error( error code 401). how should pass login credentials in http header. not using sdk, making rest api call. please me in this. if question broad please let me know. update question.
regards
not sure how soup ui works sounds need provide login credentials.
the msdn has c# sharp example.
private httpclient getnewhttpclient(string username,string password,string domainname, string webapibaseaddress) { httpclient client = new httpclient(new httpclienthandler() { credentials = new networkcredential(username, password, domainname) }); client.baseaddress = new uri(webapibaseaddress); client.timeout = new timespan(0, 2, 0); return client; }
can u tell me should use argument domainname
this depends on type of crm setup (online, on-premise, ifd) trying connect to.
have @ this , this demonstrates various connection string details. samples using different connection mechanism use soap services, expect username, domain, same rest endpoint.
do u know authentication types microsoft dynamics crm accepts (basic, ntlm, etc) ?
authenticate users in microsoft dynamics crm
microsoft dynamics crm supports 3 security models authentication: claims-based authentication, active directory authentication, , oauth 2.0. type of authentication used depends on type of deployment application accessing, microsoft dynamics crm online or microsoft dynamics crm 2016, , if application using web api or organization service.
Comments
Post a Comment