简体   繁体   English

在CRM 2011中创建Web服务

[英]Create a Web Service in CRM 2011

how can i create a web service in CRM 2011? 如何在CRM 2011中创建Web服务? I know that organizationData.svc WS shows all entity but i want to create one new WS that show only one entity, how can i create it? 我知道OrganizationData.svc WS显示所有实体,但是我想创建一个仅显示一个实体的新WS,如何创建它? thanks. 谢谢。

You don't create Web Services in CRM 2011. You have to use the CRM Web Services that is mantain by the system. 您无需在CRM 2011中创建Web服务。您必须使用系统附带的CRM Web服务。 When you add or change a new entity the system will update the Web Services. 添加或更改新实体时,系统将更新Web服务。 You can create a Web Service on top of CRM Web Services, but this is a common WCF service. 您可以在CRM Web服务之上创建Web服务,但这是一种常见的WCF服务。 Check here how you can connect with CRM 2011 . 在此处检查如何与CRM 2011连接。

Short answer: You can't. 简短的回答:不能。

Long answer: You can't make an addition to the CRM and just apply your own web service. 长答案:您不能添加CRM,而只能应用自己的Web服务。 You're left with three options here. 这里剩下三个选项。

  1. Forget about it and live with it. 忘记它,并与之共存。
  2. Design an external web service that mimics such behavior. 设计一个模仿此类行为的外部Web服务。
  3. Approach your task from a totally different angle. 从完全不同的角度来完成任务。

(1) Lacks ambition so I wouldn't recommend it at all. (1)缺乏野心,所以我完全不推荐。

(2) Seems unnecessary to me. (2)对我来说似乎不必要。 You can't stop the original service from serving the information anyway and the stuff you want to expose are included in it already. 您仍然不能阻止原始服务提供信息,并且您想要公开的内容已经包含在其中。

(3) I know nothing of the task at hand but my guess is that whatever you wish to achieve, can be done by a different approach and redesign of the solution. (3)我对手头的任务一无所知,但我的猜测是,无论您希望实现什么,都可以通过不同的方法和解决方案的重新设计来完成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM