Fórum

Calling custom service in Studio

thumbnail
Asad Saeed Awan, modificado 8 Anos atrás.

Calling custom service in Studio

Regular Member Postagens: 126 Data de Entrada: 16/01/15 Postagens Recentes
In this class BookmarkListInteractorImpl you are calling Bookmarkservice in getPageRowsRequest method. Bookmark is liferay's default portlet that's why you are importing like this "import com.liferay.mobile.android.v62.bookmarksentry.BookmarksEntryService;".

I created my own portlet and expose methos in browser using this "localhost:8080/api/jsonws". Now how do I call my custom service in android studio ?
thumbnail
Harish Kumar, modificado 8 Anos atrás.

RE: Calling custom service in Studio (Resposta)

Expert Postagens: 483 Data de Entrada: 31/07/10 Postagens Recentes
Hi

Its very simple process. please follow this documentation https://dev.liferay.com/develop/tutorials/-/knowledge_base/6-2/building-mobile-sdks

After gradlew jar command , jar file would be created in \<mobile-sdk-folder\modules\<your-module>\build\libs folder. Use this jar file in your app project.

Regards,
Harish
thumbnail
Asad Saeed Awan, modificado 8 Anos atrás.

RE: Calling custom service in Studio

Regular Member Postagens: 126 Data de Entrada: 16/01/15 Postagens Recentes
Do I need to place my portlet .war file in any place to build its .jar file ?
thumbnail
Harish Kumar, modificado 8 Anos atrás.

RE: Calling custom service in Studio (Resposta)

Expert Postagens: 483 Data de Entrada: 31/07/10 Postagens Recentes
No. keep you local service running and go to mobile sdk folder and follow the steps mentioned in documentation.
thumbnail
Asad Saeed Awan, modificado 8 Anos atrás.

RE: Calling custom service in Studio

Regular Member Postagens: 126 Data de Entrada: 16/01/15 Postagens Recentes
I got the jar file. Thank you for your help.