locked
Dynamics 2011 XRM & ServiceStack web services framework RRS feed

  • Question

  • Hi,

    I am trying to use ServiceStack to publish XRM entities as a web service but getting errors possibly due to cyclic/circular dependencies. Has anyone tried it successfully/unsuccessfully?

    I also tried creating a proxy class for one simple entity like territory & using that class to publish but that also did not work. BTW, creating proxy class is not fun, is there any quick way to do it in VS2010?

    AccountService : RestServiceBase<Account> & AccountRepository are practically empty.

    Routes.Add<Xrm.Account>("/accounts");
    
    SetConfig(new EndpointHostConfig {
              DebugMode = true, //Show StackTraces when developing
            });
    
    2011-06-26 12:17:25,531 [17] ERROR Xrm.App_Start.AppHost [Configure] -
    System.TypeInitializationException: The type initializer for 'ServiceStack.Text.Jsv.JsvReader`1' threw an exception. --->
    System.TypeInitializationException: The type initializer for 'ServiceStack.Text.Common.DeserializeEnumerable`2' threw an exception. 

    If this does not work, what are my options?

    I am looking for following features (ideally most of ServiceStack):

    1. Web service - REST & SOAP
    2. Caching
    3. Authentication

    Is OpenRasta better than WCF? Again, without NuGet, OpenRasta was not breeze...

    PS: This is also posted on StackOverflow.

     

    Monday, June 27, 2011 1:49 AM

Answers

  • Due cyclic references issue, this does not work with this or other solutions. BTW, ServiceStack is awsome.
    • Marked as answer by sagarkale Tuesday, September 13, 2011 12:49 PM
    Tuesday, September 13, 2011 12:49 PM