我想用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未经授权”
请帮我

最佳答案

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

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

10-04 12:18
查看更多