2016 Apr 05 9:34 PM
Hello Experts,
We have implemented SAP Multichannel Foundation for Utilities and Public Sector (a responsive design app) in our system.
The app is running fine in the browser with the below url.
https://XXXXXX/sap/bc/ui5_ui5/sap/umcui5_mobile/index.html
Now we want the same application as hybrid mobile app.
For that we have created an application “com.sap.umc.mobile” in SMP Admin and maintained the required configuration. We have created the required backend connection for ODATA and test of those backend connection are successful.
CRM_UTILITIES_UMC,CRM_UTILITIES_UMC_PUBLIC_SRV,CRM_UTILITIES_UMC_URM,ERP_UTILITIES_UMC,ERP_UTILITIES_UMC_PUBLIC_SRV,USERMANAGEMENT,
VBI_APPL_DEF_SRV,VBI_GEOCODER_SRV
Now we have created a cordova project and installed the required Kapsel plugin.
We have downloaded the code of the application “UMCUI5_MOBILE”, “sap.umc.mobile.foundation” & “sap.umc.mobile.public”, placed those code in the www folder of that cordova project and modified the index.html , index.js accordingly.
Now while running the index.html file in browser, all the files are loading properly, except the “metadata”. We are getting the below error.
“Failed to load resource: the server responded with a status of 403 (Forbidden)
XMLHttpRequest cannot load http://xxxx/com.sap.umc.mobile/CRM_UTILITIES_UMC_URM/$metadata. Response for preflight has invalid HTTP status code 403”
Also we have successfully able to build the apk file and installed the same in device.
While running the apk file we are successfully able to register the device in our SMP system,but the application is not loading properly, we are only able to see the background image.
While device debugging we found the that the same error is happening in the device also. The metadata are not able to loaded in the device.
Are we missing anything?
Any help will be great.
Thanks & Regard,
Souvik Saha
2016 Apr 06 3:35 AM
Hi Souvik, Did you also take a look at this blog: ?
Yes, i see that you want to do it manually but you will save a lot of time by using packaged mobile source code which provides all necessary foundation to work with SMP.
We have created the required backend connection for ODATA and test of those backend connection are successful.
When you tested by using Ping button in SMP it doesn't mean that connectivity works. Did you try testing via Advanced REST client or postman to see if you actually receive response via SMP?
Best Regards, Yevgen
2016 Apr 06 3:35 AM
Hi Souvik, Did you also take a look at this blog: ?
Yes, i see that you want to do it manually but you will save a lot of time by using packaged mobile source code which provides all necessary foundation to work with SMP.
We have created the required backend connection for ODATA and test of those backend connection are successful.
When you tested by using Ping button in SMP it doesn't mean that connectivity works. Did you try testing via Advanced REST client or postman to see if you actually receive response via SMP?
Best Regards, Yevgen
2016 Apr 09 10:49 PM
Hello Yevgen,
Thanks for your suggestion. With your suggestion we have tested via postman and we have received response via SMP, after some modification in SMP. According we have to change metadata url in our code.
Now the initial page got loaded in our mobile app. All other functionality are working fine now except "Login". While clicking the login button the login.xml got loaded, but giving the userID and password its giving the below error in device debugging.
Thanks & Regards,
Souvik Saha
2016 Apr 11 12:29 PM
Hi Souvik, based on the log, did you provision an ODATA service /IWBEP/USERMANAGEMENT in SMP?
Best Regards, Yevgen
2016 Apr 12 9:24 AM
Hello Yevgen,
Yes, we have maintained the ODATA service /IWBEP/USERMANAGEMENT in smp and also the getting response in postman.
Thanks,
Souvik