cancel
Showing results for 
Search instead for 
Did you mean: 

How to load html page from SMP

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

midhun_vp
Active Contributor
0 Kudos

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

Answers (3)

Answers (3)

Former Member
0 Kudos

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

midhun_vp
Active Contributor
0 Kudos

Hi Ady,

Have you configured LDAP security profile under authentication tab while configuring application in SMP cockpit for LDAP authentication from app ?

Could you provide the steps you followed.

Regards, Midhun

SAP Technology RIG

Former Member
0 Kudos

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.

midhun_vp
Active Contributor
0 Kudos

Hi Ady,

Is your question answered ?

Regards, Midhun

SAP Technology RIG

Former Member
0 Kudos

Hi Midhun,

Am still working on it, I will update you by today.

Thanks

Aditya

Former Member
0 Kudos

can you please help on this?