joeh42
-
4/27/2012 4:57:40 PM
Kentico with WCF
I added a WCF service to my Kentico project, and exposed some JSON through it. However, I noticed that calls to CMSContext seem to return empty strings. In particular, WCF doesn't seem to know which site is being called, even though the user is using one particular site. CMSContext.CurrentSiteName returns an empty string, and I believe Site ID returned 0 or -1.
Also, macros in emails weren't able to resolve out the domain name, and I believe other site specific settings as well.
Is there a way to set the context for a WCF service?
|