Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to connect to Dynamics365 by non .net language

(0) ShareShare
ReportReport
Posted on by 205

Hi everyone,

I used to use jlattimer's source a develop some apps by JAVA.

https://github.com/jlattimer/CRMSoapAuthJava

 

the authentication use SOAP I think.

Currently the apps don't work because the authentication .

I've debugged the source and found that it used to get two tokens(CipherValue) from the auth response.

But currently,only one <CipherValue> xml tag was send back.

I have no idea about how to fit the problem.

Is there anyone got the same problem and solved the problem?  

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to connect to Dynamics365 by non .net language

    Yes, it's why I asked if we have to use ADFS instead of ADAL :)

  • Joe Gill Profile Picture
    Joe Gill on at
    RE: How to connect to Dynamics365 by non .net language

    No you cannot use Adal for 2013 on prem.

    Jason has done a Java example for on prem IFD also github.com/.../CRMSoapAuthJava

    You would be better downloading the SDK and doing your custom code in C#.  Plenty of help and sample code included in the SDK

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to connect to Dynamics365 by non .net language

    Thank you Joe,

    But actually i'm using Dynamics CRM 2013 on-premise, and I think it's not possible to use api with. Am I wrong? In the jlatimmer's source (in the question), there is no ADAL use.

    Thanks!

  • Suggested answer
    Joe Gill Profile Picture
    Joe Gill on at
    RE: How to connect to Dynamics365 by non .net language

    Hi Selim,

    No you use Adal (Azure Active Directory Authentication)

    Some background here docs.microsoft.com/.../active-directory-authentication-libraries

    Example of registering Dynamics app docs.microsoft.com/.../active-directory-authentication-libraries

    Sample code jlattimer.blogspot.ie/.../crm-web-api-using-java.html

    hth

    Joe

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to connect to Dynamics365 by non .net language

    Hi,

    Do you use ADFS to do that? And could you tell me how do you configure that?

    Thanks!

  • Verified answer
    renton Profile Picture
    renton 205 on at
    RE: How to connect to Dynamics365 by non .net language

    Hey everyone,

    I solve the problem by myself.

    I checked the response xml,and modified the value tag get from xml.

    Here is the solution.

    old xml tag value

     token1:<CipherValue>

     token2:<CipherValue>

     keyIdentiferElements:<wsse:KeyIdentifier>

    new xml tag value

     token1:<e:CipherValue>

     token2:<CipherValue>

     keyIdentiferElements:<o:KeyIdentifier>

    Hope this post could help someone.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,356 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans