如何获取访问令牌以便从外部应用程序访问?
我想使用java中的rest api访问microsoft active dynamics crm。
答案 0 :(得分:0)
这实际上取决于您尝试访问的内容.. 举例来说......你可以这样开始:
var req = new XMLHttpRequest();
var strClientUrl = this.GetClientUrl();
//alert(strClientUrl);
req.open("POST", strClientUrl, false)
req.setRequestHeader("Accept", "application/xml, text/xml, */*");
req.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
req.setRequestHeader("SOAPAction", "http://schemas.microsoft.com/xrm/Contracts/Services/IOrganizationService/Execute");
var requestXML = this.getRequestXML(requestName, ParameterXML);
req.send(requestXML);