我在Oracle MCS中创建了一个用于登录身份验证的自定义API,并且我有一个内置在MAF中的应用程序。我的疑问是如何从Oracle MAF应用程序调用此自定义API?
发布于 2015-09-18 05:18:45
如果您正在使用OEPE (Oracle Enterprise Pack for Eclipse),您可以使用本教程来使用任何REST服务API,
对于MCS-MAF支持,下面的YouTube应该会有所帮助,
发布于 2015-09-18 14:45:35
查看MAF MCS Utility应用程序(应该在您的公共示例文件夹中),特别是源代码。
更多信息也可以通过found in this link获取。
短代码示例:
MBEConfiguration mbeConfiguration =
new MBEConfiguration(
<mbe rest connection>,<mobileBackendId>,
<anonymous key string>,<application key string>,
MBEConfiguration.AuthenticationType.BASIC_AUTH);
mbeConfiguration.setEnableAnalytics(true);
mbeConfiguration.setLoggingEnabled(false)
mbeConfiguration.setMobileDeviceId(
DeviceManagerFactory.getDeviceManager().getName());
MBE mobileBackend = MBEManager.getManager().
createOrRenewMobileBackend(<mobile backend Id>, mbeConfiguration);
CustomAPI customApiProxy = mbe.getServiceProxyCustomApi();
UserInfo userInfo = mobileBackend.getServiceProxyUserInfo();
Analytics analyticsProxy = mobileBackend.getServiceProxyAnalytics();
Storage storageProxy = mobileBackend.getServiceProxyStorage();https://stackoverflow.com/questions/32622635
复制相似问题