掲示板

Calling custom service in Studio

thumbnail
8年前 に Asad Saeed Awan によって更新されました。

Calling custom service in Studio

Regular Member 投稿: 126 参加年月日: 15/01/16 最新の投稿
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
8年前 に Harish Kumar によって更新されました。

RE: Calling custom service in Studio (回答)

Expert 投稿: 483 参加年月日: 10/07/31 最新の投稿
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
8年前 に Asad Saeed Awan によって更新されました。

RE: Calling custom service in Studio

Regular Member 投稿: 126 参加年月日: 15/01/16 最新の投稿
Do I need to place my portlet .war file in any place to build its .jar file ?
thumbnail
8年前 に Harish Kumar によって更新されました。

RE: Calling custom service in Studio (回答)

Expert 投稿: 483 参加年月日: 10/07/31 最新の投稿
No. keep you local service running and go to mobile sdk folder and follow the steps mentioned in documentation.
thumbnail
8年前 に Asad Saeed Awan によって更新されました。

RE: Calling custom service in Studio

Regular Member 投稿: 126 参加年月日: 15/01/16 最新の投稿
I got the jar file. Thank you for your help.