Post

1 follower Follow
0
Avatar

Contact another application's service in Apprenda

In a multitenant environment with two Apprenda Applications; we need one application's service to contact another application's service in order to query some data about the current user/organization.

Is through Remote API the correct way of doing this?

Ingrid Elisabeth Moen

Please sign in to leave a comment.

4 comments

0
Avatar

Hi Ingrid,

 

What type of information are you trying to get from the user/organization? It is possible that you might not need to query the second application.

Here is a link to our "Context" documentation. This might be what you are looking to do:  http://docs.apprenda.com/3-0/contexts

 

Bernie

Bernie Herdan 0 votes
0
Avatar

The application contains data about the user not found in the first application, ie. we're not using UserContext but an isolated database with data about each user.

 

As example, we have a (multitenant) TODO application listing task for current user.

This application get data from another applications, one of them called Checklist.

Checklist create "tasks" and assigns them to specific users (the tasks are stored in Checklist's database).

How would we go about contacting Checklist from TODO using WCF so that we can get the tasks for the current user?

Do we use Remote API, or can we use normal WCF with an application specific URL?

Ingrid Elisabeth Moen 0 votes
0
Avatar

Hi Ingrid,

If the other applications (like Checklist) are multitentant, then the user trying to access information will need a subscription to them as well. Otherwise if the applications are single-tenant then the user does not require a subscription.

Once that is set up, all you need to do is contact the application using normal WCF calls targeting the API URL located in Cloud Control for that service.

For more information please refer to the following link: http://docs.apprenda.com/current/web-services

 

Bernie

Bernie Herdan 0 votes
0
Avatar

Is it possible to use the TCP protocol rather than the Soap11 protocol?

And thank you for the quick replies!

Ingrid Elisabeth Moen 0 votes