on 03-19-2015 8:15 PM
Dear Experts,
I have a requirement to call a Web page in a mobile application via SMP.
Example: i need to load http://www.xyz.com/index.html in my application (Native/Hybrid)
Is it possible using SMP 3.0? I have tried by registering www.xyz.com as my end point url in my management cockpit and tried reading the response in my application, but couldn't get the response.
Can anyone help me loading the html content which is registered as an endpoint in my SMP management cockpit.
Thanks
Hi Ady,
You can define backend url to a website, ex. http://www.cnn.com. But you have to define a way how you want to parse it.
I just tried in my local machine. The result is given below:
Response in rest client:
If you run http://cnn.com in a browser and right click >page source you will find the same response.
When you creating a kapsel app using a logon plugin once you are registered you gets the application context (you can get this in native too). It has the end point url and other details like appcID. You have to get the end point url using the code
var sURL = applicationContext.applicationEndpointURL;
and then you have to decide how you are going to show that in your app. May be you can try something like this InAppBrowser
Regards, Midhun
SAP Technology RIG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Midhun,
Thanks for your reply. I have tried the same for one of the websites i am able to reach the website. but where am stuck is at authentication.
My website is having LDAP authentication. when I try to invoke the website via SMP, it keep on asking the credentials, though I give valid credentials, it fails and gives 401.
I have tried different SSO authentication at management cockpit (SMP3.0SP06), but same for all of them.
Can you help in resolving this?
Thanks
Aditya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes Midhun, I have created the LDAP security profile under authentication tab. and have tried all possible SSO mechanisms under the back end configurations.
Am able to register with SMP, But seems like the credentials are not being propagated to the backend.
steps I followed are typically like
1. Create an application
2. Provide http://xyz.com/index.html
3. Create LDAP profile under authentication
4. Diffferant SSO mechanisms under backend configuration
5. Registering with SMP via postman client
6. After registration, browser prompts for the credentials (keep on prompting even if you provide the valid credentials)
7. upon cancel, 401 unauthenticated.
Please help.
Hi Ady,
Is your question answered ?
Regards, Midhun
SAP Technology RIG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.