Print Page | Close Window

Calling a Custom Function at the Server

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2451
Printed Date: 27-Oct-2025 at 4:47am


Topic: Calling a Custom Function at the Server
Posted By: jipock
Subject: Calling a Custom Function at the Server
Date Posted: 19-Jan-2011 at 7:16am
Good Morning,
 
I'm looking for documentation on how to run a custom function on the Server.
 
Right now, I have an in-solution web service  project (different than the DevForce project) that has a function that calls a 3rd party service. It's the only thing I use the web service for. What I'd really like to do is to call the 3rd party function on the Server (not the client) from the Devforce project.
 
Ordinarily, we could extend something, say Entity Manager or something, and call MyExtendedEntityManager.Call3rdpartyservice(); But, with DevForce, most of the objects run on the client, not the server.
 
Is there any way to do something like this?



Replies:
Posted By: sbelini
Date Posted: 19-Jan-2011 at 9:38am

Hi jipock,

 
I think you might be looking for invoking a server method. You can do that using InvokeServerMethod and InvokeServerMethodAsync.
 
You can find detailed information in our http://drc.ideablade.com/xwiki/bin/view/Documentation/InvokeServerMethod - DevForce Resource Center .
 
 
 
Silvio.


Posted By: jipock
Date Posted: 19-Jan-2011 at 12:28pm
Indeed it is.. I didn't think to look under "Advanced Persistence".
 
Thank you very much.



Print Page | Close Window