如何将微软crm与delphi连接?

时间:2010-06-23 04:09:08

标签: .net web-services delphi

我想用delphi 7或2007连接到microsoft crm

wsdl = http://crm/mscrmservices/2007/crmservice.asmx

我的代码

  token := CrmAuthenticationToken.Create;
  token.OrganizationName := 'test';
  token.AuthenticationType := 0;
  service := GetCrmServiceSoap();
  customer := contact3.Create;
  customer.salutation := 'test';
  customer.lastname := 'test';
  customer.jobtitle := 'test';
  customer.telephone1 := 'test';
  customer.emailaddress1 := 'test';
  gid := service.Create(customer);
  showmessage(gid);

服务请求用户名&密码,我正在输入我的域名用户名&密码但不工作和服务问agian? 当我取消用户名和对话框的对话框时密码我收到此错误消息“401 Unauthorized” 请帮帮我

1 个答案:

答案 0 :(得分:0)

使用“域\用户名”作为HTTPRio组件中的用户名属性。

请参阅:How can I use NTLM authentication in a Delphi SOAP Web Service client?