从外部应用程序/ Javascript访问MS CRM Web服务 [英] Access MS CRM Web Services From External App/Javascript

查看:78
本文介绍了从外部应用程序/ Javascript访问MS CRM Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何方法可以通过JavaScript从不是CRM网页的网页(即,不在CRM表单的加载或保存事件中,而是从独立网页中)从JavaScript调用MS CRM Web服务。 ?第二个问题:有什么方法可以从VBScript调用MS CRM Web服务吗?

Is there any way to call the MS CRM web service from JavaScript from a web page that is NOT a CRM web page (i.e., not in the load or save event in a CRM form, but from a stand alone web page)? A second question: is there any way to call the MS CRM Web Service from VBScript?

理想情况下,我想在CRM 2011中做到这一点,但是我很乐意有一个CRM 4.0的例子。

Ideally I'd like to do this in CRM 2011, but would be happy to have an example from CRM 4.0.

我想我必须写一个包装器Web服务来做到这一点,但我宁愿不走那条路,除非

I'm thinking I'm going to have to write a wrapper web service to do this but I would rather not go that route unless necessary.

推荐答案

根据我的阅读和实验,无法从未托管的外部应用程序调用oData端点

From my reading and experimentation, it is not possible to call the oData endpoint from an external application that is not hosted within Dynamics CRM.


在Visual Studio中使用OData端点
Dynamics CRM中的OData服务不允许从外部
应用程序。 (这是一个例外,如果外部应用程序
使用Azure AppFabric Service Bus在它和
Dynamics CRM的OData服务之间传递消息。)但是,Web资源(例如
Silverlight XAP) Dynamics
CRM解决方案中托管的文件或JavaScript文件可以使用OData服务作为数据源。

Using the OData endpoint in Visual Studio The OData service in Dynamics CRM does not permit authentication from external applications. (An exception to this is if the external application uses the Azure AppFabric Service Bus to pass messages between it and Dynamics CRM’s OData service.) However, a Web resource such as a Silverlight XAP file or a JavaScript file that is hosted in a Dynamics CRM solution can use the OData service as a data source.

请参阅 http:// my。 safaribooksonline.com/book/-/9780470568149/chapter-22-working-with-server-side-customizations/585

我的理解是WCF是外部应用程序的方式。

My understanding is that WCF is the way to go for external applications.

这篇关于从外部应用程序/ Javascript访问MS CRM Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆