views:

114

answers:

3

hi i want connect to microsoft crm with delphi 7 or 2007

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

my code

  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);

the service ask username & password and i'm typing my domain username & password but don't work and service ask agian? when i cancel dialog for username & password I'm getting this error message "401 Unauthorized" please help me

A: 

Use 'domain\username' as the username property in the HTTPRio component.

See: http://stackoverflow.com/questions/1068452/how-can-i-use-ntlm-authentication-in-a-delphi-soap-web-service-client/1081582#1081582

mjustin
A: 

i write "Domainname\Username" & "Password" but don't work? Can you help me more? i don't understand please send me sample code for connect to microsoft crm service with delphi

kamyar kimiyabeigi
A: 

No one can not help me? please i need help

kamyar kimiyabeigi