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
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/
If still need help please do let me know.
Regards
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.
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
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.
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.
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
54
Victor Onyebuchi
6