The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Hosting WCF service in SlxClient portal
Posted: 06 Oct 10 6:08 AM
|
I'm trying to host my WCF Service in SlxClient portal (to be able to use sage services (e.g. IDataService)) and consume it from external application (Winforms). Any suggestion how can i do that? |
|
|
| |
|
Re: Hosting WCF service in SlxClient portal
Posted: 07 Oct 10 10:42 AM
|
Can you give a little more detail on what you are trying to do and version please? I don't fully grasp what you are after?
The good news is most likely this is easy, but there are multiple ways to integrate. |
|
|
|
Re: Hosting WCF service in SlxClient portal
Posted: 07 Oct 10 9:55 PM
|
Ok, let me try to explain... I want to be able to use Sage services in my WCF service, for example like this:
... // Service methode public string WhoAmI() { return Sage.Platform.Application.ApplicationContext.Current.Services.Get<Sage.Platform.Security.IUserService>().UserName } ...
To get this method work my external application must be somehow authorized in SlxClient portal... am i right? So the questions are: 1. how to host WCF Service right (for consuming by external application)? 2. how to authorizate external application in SlxClient portal (to be able to use .ApplicationContext.Current.Services in WCF Service) and consume service from it? |
|
|
|