CRM 2011:WSDL Web服务不包含我的实体 [英] CRM 2011: Wsdl web service doesn't contain my entities

查看:73
本文介绍了CRM 2011:WSDL Web服务不包含我的实体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们即将升级到CRM 2011,因此我正在做一些测试。问题是,当我将Web服务引用更改为2011引用时,我的应用程序停止编译。它只是找不到任何实体(行停止运行的示例: Account acc = new Account()->它说我必须错过参考)。

We will soon upgrade to CRM 2011 so I'm doing some tests. The problem is that when I change my web service reference to the 2011 one, my application stops compiling. It just won't find any entity (example of line that stops working: Account acc = new Account() -> It says that I must miss a reference).

当我将CRM 4的Web服务与CRM 2011之一进行比较时,我发现这是真的。 CRM 4的CrmService包含CRM的每个实体的定义,但是它们没有出现在CRM 2011中!

When I compare the web services of the CRM 4 to the one of the CRM 2011, I see that it's true. The CrmService of CRM 4 contains the definition of every entity of the CRM, but they do not appear in the CRM 2011!

为什么?我想念什么吗?我需要激活某些东西吗?

Why is that? Am I missing something? Do I need to activate something?

只需确保以下是我正在使用的URL:

Just to make sure, here are the URLs I'm using:

http://myserver/mscrmservices/2006/CrmServiceWsdl.aspx ->完美运行

http:// myserver / mscrmservices / 2007 / CrmService .asmx?WSDL ->不包含实体定义

http://myserver/mscrmservices/2007/CrmService.asmx?WSDL& uniquename = MyOrg ->不包含实体定义

http://myserver/mscrmservices/2007/crmservicewsdl.aspx ->不包含实体定义

推荐答案

您使用了错误的端点。

Dynamics CRM 2011引入了一个完整的基于WCF的新Web服务。

Dynamics CRM 2011 introduces a complete new WCF based web service.

它的端点是 http://ServerName/OrganizationName/XRMServices/2011/Organization.svc 请参见端点概述

所以您应该添加服务参考(请参阅使用WSDL端点)或使用早期/晚期绑定访问权限(请参见为Microsoft Dynamics CRM(Web服务)编写代码

So you should either add a Service Reference (See Use the WSDL Endpoint) or use early/late bound access (See Write Code for Microsoft Dynamics CRM (Web Services)

您在帖子中提到的端点是出于遗留目的。请参阅文章使用Microsoft Dynamics CRM 4.0(2007)端点

The endpoints you mention in your post are for legacy purposes. See the article Use the Microsoft Dynamics CRM 4.0 (2007) Endpoint

这篇关于CRM 2011:WSDL Web服务不包含我的实体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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