首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何连接到CRM IFD web服务?

如何连接到CRM IFD web服务?
EN

Stack Overflow用户
提问于 2009-04-17 08:20:36
回答 2查看 3.1K关注 0票数 0

我从SDK中提取了代码,只做了一次修改来设置身份验证类型,但当我尝试连接时,我得到了一个“未授权”的错误。

我的代码是:

代码语言:javascript
复制
// Set up the CRM Service.
CrmAuthenticationToken token = new CrmAuthenticationToken();
token.AuthenticationType = 2;
token.OrganizationName = "TESTCRM";


CrmService service = new CrmService();
service.Url = "https://testcrm.ifdtestsystem.com/MSCrmServices/2007/CrmService.asmx";
service.CrmAuthenticationTokenValue = token;
//service.Credentials = System.Net.CredentialCache.DefaultCredentials;
service.Credentials = new NetworkCredential("Bill", "Password");


// Create an account entity and assign data to some attributes.
account newAccount = new account();
newAccount.name = "Greg Bike Store";
newAccount.accountnumber = "123456";
newAccount.address1_postalcode = "98052";
newAccount.address1_city = "Redmond";


// Call the Create method to create an account.
Guid accountId = service.Create(newAccount);
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2009-04-23 18:40:18

当使用SPLA (IFD)时,您还需要使用可通过查询CrmDiscoveryService检索到的crmticket.The票证填充令牌。

票数 0
EN

Stack Overflow用户

发布于 2009-05-04 12:35:10

This document包含了一个合理的示例,如何使用CrmDiscoveryService获取工单并设置CrmService。

请注意,服务的Credentials属性将不再是必需的,因为所有身份验证信息都在票证中。

希望这能有所帮助

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/759500

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档