Hi all
We have just recently installed CRM 4.0 on one of our servers . We are design synchronization functionality(create/retrieve/update entity) between our existing
java application and CRM.
We can connect the MS CRM 3.0 with the same code snippet, but unable to connect with the new CRM4.0 with its new webservice APIs
the source code and the error showing is:
CrmServiceSoapStub binding = (CrmServiceSoapStub) new CrmServiceLocator().getCrmServiceSoap(
new URL(http://192.168.0.103/MSCRMServices/2007/CrmService.asmx));
binding.setUsername(username); binding.setPassword(password); Contact contact = new Contact(); contact.setFirstname("First_NameA"); contact.setMiddlename("Middle_NameB"); contact.setLastname("Last_NameC"); contact.setJobtitle("Software EngineerD"); contact.setTelephone1("1111111");//Bussiness Phone contact.setTelephone2("2222222");//Home Phone contact.setMobilephone("3333333"); contact.setFax("4444444"); contact.setPager("555555"); contact.setEmailaddress1("Emailaddress1@hotmail.com"); String hh= binding.create(contact); System.out.println("\nContact Created\n id is"+hh);
output:
- Failure authenticating with NTLM <any realm>@192.168.0.103:80
AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (401)Unauthorized
faultActor:
faultNode:
faultDetail:
{}:return code: 401
{http://xml.apache.org/axis/}HttpErrorCode:401
(401)Unauthorized
any help would be appreciated..Thanks in advance
(It might be helpful. I can get the crm3.0 when type on browser like http://192.168.0.102/ But I am not getting CRM4 when type like http://192.168.0.103/ , it will get when we use comp.name like http://MSCRM-4/ )