Ok, here's a strange one... I have a web service I'm working on that is outside of Umbraco, but within the same ASP.NET application. I.e., it's not running in the Umbraco context. So how do I find a node based on some property in this web service? Do i query the database directly?
1) You may set the AspNetCompatibility Mode of the web service, then the UmbracoContext will be available
2) You can create the UmbarcoContext manually using the newely opened API in v6 regarding the following feature request: http://issues.umbraco.org/issue/U4-1717
Querying Umbraco Site "Externally"
Ok, here's a strange one... I have a web service I'm working on that is outside of Umbraco, but within the same ASP.NET application. I.e., it's not running in the Umbraco context. So how do I find a node based on some property in this web service? Do i query the database directly?
In other words, my code doesn't have access to the normal Umbraco context as in a macro of page...
There are two ways to achieve this.
1) You may set the AspNetCompatibility Mode of the web service, then the UmbracoContext will be available
2) You can create the UmbarcoContext manually using the newely opened API in v6 regarding the following feature request: http://issues.umbraco.org/issue/U4-1717
is working on a reply...