Answered by:
CRM 2011 old code for CRM 2011 is shown in red any idea what should i replaced it

Question
-
Hi All;
My old code for CRM 2011 is shown in red any idea what should i replaced it ?
XmlHttp.open("POST", '/mscrmservices/2007/crmservice.asmx', false );
Any help much appreciated
Thanks
Pradnya07
Wednesday, November 6, 2013 3:49 PM
Answers
-
Hi,
You need to use CRM 2011 SOAP or REST endpoints.
Here is the REST/Odata query designer tool you can quickly build the query using this tool
http://crm2011odatatool.codeplex.com/
Or you can also use XrmService tool-kit.
http://xrmservicetoolkit.codeplex.com/
Hope this helps. If you get answer of your question, please mark the response as an answer and vote as helpful !
Vikram !- Proposed as answer by HIMBAPModerator Thursday, November 7, 2013 7:53 AM
- Marked as answer by Simran08 Friday, November 8, 2013 8:52 AM
Thursday, November 7, 2013 7:25 AM
All replies
-
This endpoint ('/mscrmservices/2007/crmservice.asmx') belongs to CRM 4.0 and is no more available in 2013. It should still run in 2011 but if you wan't to ensure that your code works in 2013 too then, You should odata endpoint included in CRM 2011 and rewrite the whole module. You may take reference from the sdk code. There are some very nice examples in 'SDK\SampleCode\JS\RESTEndpoint'
- Arvind
- Proposed as answer by HIMBAPModerator Thursday, November 7, 2013 7:53 AM
Thursday, November 7, 2013 7:09 AM -
Hi,
You need to use CRM 2011 SOAP or REST endpoints.
Here is the REST/Odata query designer tool you can quickly build the query using this tool
http://crm2011odatatool.codeplex.com/
Or you can also use XrmService tool-kit.
http://xrmservicetoolkit.codeplex.com/
Hope this helps. If you get answer of your question, please mark the response as an answer and vote as helpful !
Vikram !- Proposed as answer by HIMBAPModerator Thursday, November 7, 2013 7:53 AM
- Marked as answer by Simran08 Friday, November 8, 2013 8:52 AM
Thursday, November 7, 2013 7:25 AM -
I still did nt get it???
Pradnya07
Thursday, November 7, 2013 10:17 AM -
I still did nt get it???
Pradnya07
which part?
If you can't figure out how to implement the provided solution, probably you could paste the whole code and maybe someone would convert it to use rest service and post back.
In short, there is no alternate code of line which you could use to replace(the line you mentioned) and fix your issue. The whole code has to be rewritten!
- Arvind
Friday, November 8, 2013 5:40 AM -
Thanks i had posted the code in
Thanks
Pradnya07
Friday, November 8, 2013 8:52 AM