Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM & Java Integration.

(0) ShareShare
ReportReport
Posted on by 905

Dear All,

I need your input on the CRM & java Integration. We are Integrating the Dynamic CRM 2015 with Java. So the Java People are asking to give REST Web Service for consuming(i.e they will submit Account data from REST WebService). 

As of now i can create SOAP WebService and consume in Dot Net Applications(simply add as a Web Reference or Service Reference).

But my question is how to Develop REST WebService to Integrate with Java.

Please suggest on this.

Thank You.

*This post is locked for comments

  • Verified answer
    Aram Adnan Profile Picture
    375 on at
    RE: CRM & Java Integration.

    Hi Venkata,

    From above discussion I hope you need help in consuming the Java rest service in CRM.

    Well if you want to use in CRM then we can have two options via code or JavaScript (jquery). It depends on your needs but one thing for code base you need to understand if you try to access the web service  in sandbox plugin then you have problems and you have to use the anonymous authentication (see crm sdk plugin).

    With JavaScript its easy to call with JQuery or xmlhttp object in form or so (hope no cross domain issue).

    With code (c#)  you can use :

    WebClient or WebRequest

    http://msdn.microsoft.com/en-GB/library/jj819168.aspx

    http://stackoverflow.com/questions/9620278/how-do-i-make-calls-to-a-rest-api-using-c

    below is an example of WebRequest

    http://forums.asp.net/t/2011553.aspx?Consume+JAVA+REST+Service+using+c+Code+Behind

    With Javascript  you can use :

    http://www.srikanthtechnologies.com/blog/java/rest_service_client.aspx

    With Jquery  you can use :

    http://www.codeproject.com/Articles/664157/Consume-RESTful-Service-using-jQuery-in-Simple-S

    But I suggests use new JQuery ajax call like (jqxhr):

    http://api.jquery.com/jquery.ajax/

    http://java.icmc.usp.br/moodle/pluginfile.php/4142/mod_resource/content/0/How%20to%20consume%20a%20RESTful%20service%20using%20jQuery.pptx

    If still need help please do let me know.

    Regards

  • VenkataSambasivaRao K Profile Picture
    905 on at
    RE: CRM & Java Integration.

    HI Samuel,

    I need your help on the WCF REST Service. I have developed WCF REST Service and Java Team is consuming my CRM WCF REST Service and its working well the data is coming from Java to CRM.

    I need one more help here, Java team has given a REST Service and i need to consume in CRM , how i can consume java REST Service. What is the best method to consume Java REST Service in CRM.

    Please suggest on this.

    Thanks.

  • Verified answer
    Aram Adnan Profile Picture
    375 on at
    RE: CRM & Java Integration.

    Hi Venkata

    Well if build a WCF service already then you can just deploy it as SOAP/REST depending
    upon bindings (other settings) in WCF configuration file on your IIS server.

    You need to expose your contract and binding in endpoint section and endpoint behavior of configuration file

    below are some some links for both:
    Note REST uses webHttpBinding and SOAP has many options like basicHttpBinding, wsHttpBinding etc... depending on need.

    http://www.codeproject.com/Articles/105273/Create-RESTful-WCF-Service-API-Step-By-Step-Guide

    http://www.codeproject.com/Articles/167159/How-to-create-a-JSON-WCF-RESTful-Service-in-sec

    http://stackoverflow.com/questions/186631/rest-soap-endpoints-for-a-wcf-service

    http://www.dotnetfunda.com/articles/show/779/simple-5-steps-to-expose-wcf-services-using-rest-style

    If you still need help please let em know.

    Mark it answer if it helps you


  • Suggested answer
    VenkataSambasivaRao K Profile Picture
    905 on at
    RE: CRM & Java Integration.

    Dear Samuel,

    2. Then you have also option to expose your web service as SOAP or REST. - I need some more information on this.

    As i have developed WCF Service and it connects with CRM but how to expose this WCF Service as SOAP or REST.

    I need this information.

  • Suggested answer
    Aram Adnan Profile Picture
    375 on at
    RE: CRM & Java Integration.

    Hi dear,

    If you just want to use CRM Soap service with Java (code)  then there are multiple ways one best is:

    1. You can build your own WCF which connects to CRM and perform CRUD operations regarding Accounts, Contacts etc..

    2. Then you have also option to expose your web service as SOAP or REST. So that either Java client or even from JavaScript you can access CRM.

    3. If you want tight security you can set token to access your web service in each call.

    for more help

    https://msdn.microsoft.com/en-us/library/jj602979(v=crm.5).aspx

    I hope this can be helpful .

    Please mark answer of it help you.

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 the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 54

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans