CRM Online 2011 - 无需 SDK 即可访问数据
我在从 CRM 2011 中提取数据时遇到了大问题。我需要通过 SqlServer 2008 中的 SSIS 任务来完成此操作。问题是 CRM SDK 是 .NET 4.0 而 SqlServer 是 .NET 2.0 - 因此我的自定义 ssis 无法安装。
我想在不使用 CRM SDK 的情况下访问 Web 服务(或至少尝试这样做) - 这可能吗?我不在乎是否必须手动编写我的soap xml,我只想在没有SDK的情况下进行连接。
到目前为止,我有这段代码(使用了发现服务中的 WSDL):
BIACRMNoSdk.discoveryService.DiscoveryServiceClient client = new BIACRMNoSdk.discoveryService.DiscoveryServiceClient();
BIACRMNoSdk.discoveryService.DiscoveryRequest request = new BIACRMNoSdk.discoveryService.RetrieveOrganizationRequest();
BIACRMNoSdk.discoveryService.DiscoveryResponse response = (BIACRMNoSdk.discoveryService.DiscoveryResponse)client.Execute(request);
我收到一个安全异常,它无法解决我的安全问题 - 如何应用此安全问题?没有明显的地方可以添加这个。有人知道如何做到这一点吗?
Im having big problems with extracting data from the CRM 2011. I need to do it though an SSIS task in SqlServer 2008. The problem is that the CRM SDK is .NET 4.0 and the SqlServer is .NET 2.0 - thus my custom ssis fails to install.
I want to access the webservice (or at least try to) without the use of the CRM SDK - is this possible? I dont care if I have to write my soap xml manually, i just want to connect without the SDK.
I have this code so far (consumed the WSDL from the discoveryservice):
BIACRMNoSdk.discoveryService.DiscoveryServiceClient client = new BIACRMNoSdk.discoveryService.DiscoveryServiceClient();
BIACRMNoSdk.discoveryService.DiscoveryRequest request = new BIACRMNoSdk.discoveryService.RetrieveOrganizationRequest();
BIACRMNoSdk.discoveryService.DiscoveryResponse response = (BIACRMNoSdk.discoveryService.DiscoveryResponse)client.Execute(request);
Im getting a security exception, that it could not resolve my security - how to apply this security? There are no obvious places to add this. Anyone got ideas on how to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您始终可以创建一个 .NET 4 Web 服务,它使用 SDK 访问 CRM2011 并公开您需要的任何内容...您可以以任何您想要的方式托管它(IIS、Windows 服务等),然后您可以从您的应用程序中使用您的 Web 服务自定义SSIS...
You could always create a .NET 4 Web Service which uses the SDK to access the CRM2011 and exposes whatever you need... you can host that anyway you want (IIS, Windows Service etc.) and then you can consume your webservice from your custom SSIS...
您是否考虑过使用 OData 服务来获取此数据?
Have you thought about using the OData services to get this data?
关闭-无法完成!
看来微软对SDK的依赖很深。如果这应该在没有 SDK 的情况下完成,那么您可能需要嗅探格式。
Closing - cannot be done!
Seems like microsoft is deeply dependent on the SDK. If this should be done without SDK, then you probably need to be sniffing the format.