Answered by:
Host custom service wrapper within CRM 2011

Question
-
Hello,
Is there any "officially" supported method for hosting a custom web service within Dynamics?
My goal is to provide a service that will act as a wrapper around certain CRM functionality, which another website could then consume to perform common actions.
For example, filling out a form on this other site might trigger a service call that would contain the logic to create a Lead.
The primary purpose here is to
- simplify access, so that the developers working on this other site would not have to have any knowledge around CRM development, but would instead only need to add a standard service reference to their pages.
- Prevent them from going nuts and adding a service reference to the standard endpoints and doing who-knows-whatI understand it would be easy enough to host another site, but it would be nice if there were a method that integrated nicely with the CRM deployment process.
i.e. an .asmx Web Resource, similar to HTML, CSS, etc. Since that does not seem possible, is there any other recommended route to take?Thanks in advance for any help
Monday, June 3, 2013 9:34 PM
Answers
-
The only supported means to deploy web service or web application code within the CRM web site is using the CRM 4 endpoint, which is deprecated, and will probably cease to be supported in the next CRM version.
The approach I normally take is to deploy the web services in a separate web site, which has the advantage that you can have more direct control over the security. This does mean that it has to be deployed separately from CRM solutions, and IIS will have to be configured appropriately, but that's not normally a big overhead
Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk
- Marked as answer by Dansor Wednesday, June 5, 2013 2:14 PM
Tuesday, June 4, 2013 8:14 AMModerator
All replies
-
Hi,
If you intend to do it in CRM, you can create a Queue entity in CRM. You can create a pre/post create plug-in to handle all the internal business logic in CRM. This still means external application to have crm web service reference and create queue record in CRM.
Hope this helps.
-----------------------------------------------------------------------
Minal Dahiya
If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"- Proposed as answer by Minal Dahiya Tuesday, June 4, 2013 3:13 AM
Tuesday, June 4, 2013 3:13 AM -
The only supported means to deploy web service or web application code within the CRM web site is using the CRM 4 endpoint, which is deprecated, and will probably cease to be supported in the next CRM version.
The approach I normally take is to deploy the web services in a separate web site, which has the advantage that you can have more direct control over the security. This does mean that it has to be deployed separately from CRM solutions, and IIS will have to be configured appropriately, but that's not normally a big overhead
Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk
- Marked as answer by Dansor Wednesday, June 5, 2013 2:14 PM
Tuesday, June 4, 2013 8:14 AMModerator