Connecting MSCRM + IFD with Java

This question has suggested answer(s)

We are trying to connect MSCRM + IFD with Java and have not been successful. Wanted to see if anyone has been able to connect MSCRM (IFD or On-premise). Any suggestions would be helpful

All Replies
  • Can you please explain a little more on what you are trying to do?

    Thank you for using Microsoft Dynamics CRM Communities,

    Dynamics CRM Support Blog

    Aaron Richards
    Sr. Support Engineer
    Microsoft Dynamics CRM

     

  • Code to connect to a CRM IFD Web Service is:

    // Set up the CRM Service.

    CrmAuthenticationToken token = new CrmAuthenticationToken();

    token.AuthenticationType = 2;

    token.OrganizationName = "TESTCRM";

    CrmService service = new CrmService();

    service.Url = "testcrm.ifdtestsystem.com/.../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);

    M.Adeel

  • I will start looking at this SDK article: msdn.microsoft.com/.../jj602979.aspx

    It is for CRM Online but it can give you hints for IFD

  • Aaron,

    We are a Java shop and are looking to integrate with MSCRM (non online or 365 version). We need to connect to MSCRM on-premise / IFD (as told by our provider). We are able to connect to MSCRM online, but not IFD hosted by third party. Looking for some samples code to assist us.

  • Adeel,

    This is C# code. We are looking for Java code. Also it seems like this is for On-premise install with perhaps Active directory based authentication and not IFD.

  • Tanguy,

    We have gor CRM Online authentication to work. Its not the same as IFD Auth.

  • Below is a link useful in this regard:

    msdn.microsoft.com/.../hh771584.aspx

    M.Adeel

  • I know that, I'm fighting with PHP to work with IFD whereas it is easy for CRM Online

  • Adeel,

    Thanks for the valuable suggestions.

    Our issue is authentication with MSCRM + IFD with Java. The above article is for Javascript.

    Thanks

  • Brother check this as I think this is near to what you want:

    stackoverflow.com/.../connecting-to-microsoft-dynamics-crm-web-service-with-java

    This article lists a java code for Authentication.

    Regards

    M.Adeel

  • Project providing tools which can be used to build a Java interface for Microsoft Dynamics CRM:

    http://javamscrm.codeplex.com/

    M.Adeel