[英]Get data from Azure hosted SQL server from with in MS Dynamics CRM Sandbox plugin
I am stuck in accessing the SQL Server from within Sandbox plugin. 我被困在从沙盒插件中访问SQL Server。 As we can't access it from within Sandbox plugin so i tried to access it through azure hosted WebApi but I am unable to access that API from within MS Dynamics CRM through JavaScript as well as through a Plugin, i have reported that issue here: 由于我们无法从Sandbox插件中访问它,因此我尝试通过azure托管的WebApi访问它,但是我无法通过JavaScript和插件从MS Dynamics CRM中访问该API,我在这里报告了该问题:
Consuming Azure hosted WebApi in MS Dynamics CRM Online 在MS Dynamics CRM Online中使用Azure托管的WebApi
The other thing i tried that i created an azure hosted cloud service but i am unable to access that service from within sandbox plugin. 我尝试创建的另一件事是创建了一个Azure托管云服务,但无法从沙盒插件中访问该服务。 It says 'no endpoint listening that could accept the message', although i have confirmed that azure hosted cloud service is working fine and that the end point is also correct. 它说“没有端点监听可以接受该消息”,尽管我已经确认了azure托管云服务可以正常工作,并且端点也正确。
So now I am not sure that what setting is am missing in Azure/MS Dynamics CRM. 因此,现在我不确定Azure / MS Dynamics CRM中缺少什么设置。 Kindly suggest that what will be the best approach to use in this scenario? 请提出在这种情况下使用的最佳方法是什么?
Have a look at this post. 看看这篇文章。
https://code.msdn.microsoft.com/How-to-call-External-WCF-42c4490d https://code.msdn.microsoft.com/How-to-call-External-WCF-42c4490d
Also from the CRM SDK. 同样来自CRM SDK。
Web access 网络访问
Sandboxed plug-ins and custom workflow activities can access the network through the HTTP and HTTPS protocols. 沙盒插件和自定义工作流程活动可以通过HTTP和HTTPS协议访问网络。 This capability provides support for accessing popular web resources like social sites, news feeds, web services, and more. 此功能为访问流行的Web资源(如社交网站,新闻提要,Web服务等)提供了支持。 The following web access restrictions apply to this sandbox capability. 以下Web访问限制适用于此沙盒功能。
Only the HTTP and HTTPS protocols are allowed. 仅允许使用HTTP和HTTPS协议。
Access to localhost (loopback) is not permitted. 不允许访问本地主机(环回)。
IP addresses cannot be used. IP地址无法使用。 You must use a named web address that requires DNS name resolution. 您必须使用需要DNS名称解析的命名网址。
Anonymous authentication is supported and recommended. 支持并建议使用匿名身份验证。 There is no provision for prompting the logged on user for credentials or saving those credentials. 没有规定提示登录的用户输入凭据或保存这些凭据。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.