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):
- Web service - REST & SOAP
- Caching
- Authentication
Is OpenRasta better than WCF? Again, without NuGet, OpenRasta was not breeze...
PS: This is also posted on StackOverflow.