web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

What is CRM web service and how to use it?

(0) ShareShare
ReportReport
Posted on by 1,805

Can anyone send me an article on crm webservice and its use?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mahendar Pal Profile Picture
    45,095 on at

    Hi John,

    Please download MSCRM 2013 SDK (www.microsoft.com/.../details.aspx), you will see sample code there, you can also look for online information here: msdn.microsoft.com/.../gg309557(v=crm.6).aspx

    msdn.microsoft.com/.../gg334689(v=crm.6).aspx

    Thanks

  • Sumit Ruhela Profile Picture
    1,805 on at

    thanks.. can you suggest more links to use web service. my task is basically to fetch data from crm and display the same on a website

  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at
  • Sumit Ruhela Profile Picture
    1,805 on at

    I have followed this fmt article but i am getting an error message while running the project. here is the error message:

    Server Error in '/' Application.

    Access is denied.

     Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ServiceModel.Security.SecurityAccessDeniedException: Access is denied.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

    Stack Trace:

    [SecurityAccessDeniedException: Access is denied.]

      System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +10818447

      System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +336

      Microsoft.Xrm.Sdk.IOrganizationService.Execute(OrganizationRequest request) +0

      Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.ExecuteCore(OrganizationRequest request) +638

      Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.Execute(OrganizationRequest request) +44

      Microsoft.Xrm.Client.Services.<>c__DisplayClass19.<Execute>b__18(IOrganizationService s) +45

      Microsoft.Xrm.Client.Services.InnerOrganizationService.UsingService(Func`2 action) +180

      Microsoft.Xrm.Client.Services.OrganizationService.Execute(OrganizationRequest request) +144

      Microsoft.Xrm.Client.Services.CachedOrganizationService.InnerExecute(OrganizationRequest request) +198

      Microsoft.Xrm.Client.Services.OrganizationServiceCache.InnerExecute(TRequest query, Func`2 execute, Func`2 selector) +56

      Microsoft.Xrm.Client.Services.<>c__DisplayClass4`3.<LookupAndInsert>b__2(ObjectCache cache) +217

      Microsoft.Xrm.Client.Caching.<>c__DisplayClass6`1.<Get>b__5(String key) +61

      Microsoft.Xrm.Client.Threading.<>c__DisplayClass5`1.<Get>b__3() +93

      Microsoft.Xrm.Client.Threading.<>c__DisplayClass1.<Lock>b__0(Mutex _) +39

      Microsoft.Xrm.Client.Threading.MutexExtensions.Lock(String key, Int32 millisecondsTimeout, Action`1 action) +246

      Microsoft.Xrm.Client.Threading.MutexLockProvider.Lock(String key, Int32 millisecondsTimeout, Action action) +125

      Microsoft.Xrm.Client.Threading.LockProvider.Get(String key, Int32 millisecondsTimeout, Func`2 loadFromCache, Func`2 loadFromService) +338

      Microsoft.Xrm.Client.Threading.LockProvider.Get(String key, Func`2 loadFromCache, Func`2 loadFromService) +139

      Microsoft.Xrm.Client.Threading.LockManager.Get(String key, Func`2 loadFromCache, Func`2 loadFromService) +123

      Microsoft.Xrm.Client.Caching.ObjectCacheProvider.Get(ObjectCache cache, String cacheKey, Func`2 load, Action`2 insert, String regionName) +316

      Microsoft.Xrm.Client.Caching.ObjectCacheManager.Get(ObjectCache cache, String cacheKey, Func`2 load, Action`2 insert, String regionName) +129

      Microsoft.Xrm.Client.Services.OrganizationServiceCache.LookupAndInsert(TRequest query, Func`2 execute, Func`2 selector, String selectorCacheKey) +441

      Microsoft.Xrm.Client.Services.OrganizationServiceCache.Get(TRequest query, Func`2 execute, Func`2 selector, String selectorCacheKey) +121

      Microsoft.Xrm.Client.Services.OrganizationServiceCache.InnerExecute(TRequest request, Func`2 execute, Func`2 selector, String selectorCacheKey) +225

      Microsoft.Xrm.Client.Services.OrganizationServiceCache.Execute(OrganizationRequest request, Func`2 execute, Func`2 selector, String selectorCacheKey) +94

      Microsoft.Xrm.Client.Services.CachedOrganizationService.Execute(OrganizationRequest request, Func`5 execute, Func`2 selector, String selectorCacheKey) +152

      Microsoft.Xrm.Client.Services.CachedOrganizationService.Execute(OrganizationRequest request, Func`2 selector, String selectorCacheKey) +273

      Microsoft.Xrm.Client.Services.CachedOrganizationService.Execute(OrganizationRequest request) +186

      Microsoft.Xrm.Client.Services.CachedOrganizationService.Execute(OrganizationRequest request) +47

      Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.Execute(OrganizationRequest request) +180

      Microsoft.Xrm.Sdk.Linq.QueryProvider.RetrieveEntityCollection(OrganizationRequest request, NavigationSource source) +438

      Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute(QueryExpression qe, Boolean throwIfSequenceIsEmpty, Boolean throwIfSequenceNotSingle, Projection projection, NavigationSource source, List`1 linkLookups, String& pagingCookie, Boolean& moreRecords) +693

      Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute(QueryExpression qe, Boolean throwIfSequenceIsEmpty, Boolean throwIfSequenceNotSingle, Projection projection, NavigationSource source, List`1 linkLookups) +103

      Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute(Expression expression) +200

      Microsoft.Xrm.Sdk.Linq.QueryProvider.GetEnumerator(Expression expression) +88

      Microsoft.Xrm.Sdk.Linq.Query`1.GetEnumerator() +174

      System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +369

      System.Linq.Enumerable.ToList(IEnumerable`1 source) +58

    [TargetInvocationException: Exception has been thrown by the target of an invocation.]

      System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0

      System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +92

      System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +155

      System.Web.UI.WebControls.QueryableDataSourceHelper.ToList(IQueryable query, Type dataObjectType) +129

      System.Web.UI.WebControls.LinqDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +329

      System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +21

      System.Web.UI.WebControls.DataBoundControl.PerformSelect() +138

      System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +30

      System.Web.UI.WebControls.GridView.DataBind() +4

      System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +105

      System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +75

      System.Web.UI.Control.EnsureChildControls() +83

      System.Web.UI.Control.PreRenderRecursiveInternal() +42

      System.Web.UI.Control.PreRenderRecursiveInternal() +155

      System.Web.UI.Control.PreRenderRecursiveInternal() +155

      System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +974

  • Mahendar Pal Profile Picture
    45,095 on at

    Did you try to create your own application ??

  • Suggested answer
    Abed Haniyah Profile Picture
    4,287 on at

    Hi,

    Please take a look to : www.fmtconsultants.com/.../step-by-step-guide-to-portal-development-for-microsoft-dynamics-crm

    Hope it helps,

    Abed.

  • Community Member Profile Picture
    on at

    Hi John,

    Please find the link below, which should give you a basic idea on what web services are and how they work :-

    msdn.microsoft.com/.../cc151038.aspx

    msdn.microsoft.com/.../cc150838.aspx

    blogs.msdn.com/.../create-your-custom-web-service-and-integrate-with-crm-2011-online.aspx

    Vijay Mani | Microsoft Dynamics CRM Support engineer

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans