cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in connecting to netweaver gateway service from sybase control centre

Former Member
0 Kudos

HI,

   I am trying to create a demo ODATA application in android using SUP. I am using the service exposed by netweaver gateway of the SAP demo system

(HTTPS://sapes1.sapdevcenter.com:443/sap/opu/sdata/iwfnd/SAMPLEFLIGHT/)

As far as I have understood, the main steps are

1. From sybase control center, create a proxy connection to the service uri.

2. Develop an android application using ODATA jar files.

I am using AWS cloud for the sybase unwired platform.

Now from the server, I tried to access the service url from the browser. When I provided the NW Gateway credentials, the xml data came proving that there is no connectivity issue between the AWS server and netweaver gateway of SAP demo system.

Then I logged into the Sybase control center using the admin credentials and did the following activity

a) Navigated to Domains->Default->Connections->new   and performed the following setting

  Connection name : gwproxy

  Connection pool type: proxy

  Address: HTTPS://sapes1.sapdevcenter.com:443/sap/opu/sdata/iwfnd/SAMPLEFLIGHT/

PoolSize: 25

User: (gave the username)

Password: (gave the password).

But when I press the test connection button, I get the error dialog box Endpoint Test Result: Unauthorised.

Why is this error coming even though the credentials are correct. Please guide me as I am unable to resolve this issue.

Also, for testing should I use the following url (after successful creation of proxy connection)

http://localhost:8000/gwproxy

Please clarify this doubt.

thanks and regards,

Umapathy.

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hi Umapathi,

In order to test from the browser, you should do the following configurations:

1. Domain-> default ( or select the domain that you are using)->Security-> Assign the security configuration.

2. Domain-> default-> connection-> create a proxy connection with the same name as the application id.

3. Give the proxy end point here.

Now: Assuming that your application id: com.sap.test.

        Security Configuration: HttpAuth

        Http port: 8000.

        Gateway username: user

        Gateway password:pass

Fire the following request from the browser: http://<server domain_name>:8000/com.sap.test

In the promt that you get: In place of username: user@HttpAuth

In place of password: pass.

This should work for you!

Regards,

Sharvari

midhun_vp
Active Contributor
0 Kudos

Which document you are following ?

To develop a native application with Odata you need follow these in the SCC in-order to connect the native app with the NW gateway system via SUP.

  • Create a new application template in SCC, there you need to provide the end point URL under proxy as given below.
  • Then under connections you need to provide the IP of your SUP server as given below:
  • Finally in the application coding you need to provide the app name, Ex: protected static final String SUP_APPLICATION = "MobileWorkList";

- Midhun VP

Former Member
0 Kudos

Hi,

Thanks for your kind help. I referred to the you tube vieo series for creating android application in ODATA. I referred to the following video to perform the steps that I mentioned

www.youtube.com/watch?v=L7wMSAveEX8

Request you to kindly provide me link of the document I should refer to for buiding the demo application.

thanks and regards,

umapathy.

Former Member
0 Kudos

Hi Uma,

Please refer the following link since i was facing similar issues that time in SCC config.

http://scn.sap.com/thread/3294359

Also,You can negelect the error "Endpoint Test Result: Unauthorised." as its not relevant and seems to be a bug.

Regards,

Abhishek Wajge

Former Member
0 Kudos

Hi Abhishek,

   I have some doubts. Request you to clarify it.

  In the SUP server machine, I first opened the scc from the browser using the url

https://localhost:8283/scc/

  Then I logged in and did the following settings

   

a) Navigated to Domains->Default->Connections->new   and performed the following setting

  Connection name : gwproxy

  Connection pool type: proxy

  Address: HTTPS://sapes1.sapdevcenter.com:443/sap/opu/sdata/iwfnd/SAMPLEFLIGHT/

PoolSize: 25

User: (gave the username)

Password: (gave the password).

Now for testing the url from the browser of SUP server machine, what should be the url??

Should it be be

http://localhost:8000/gwproxy

I tried this but I am not getting the xml content.

If it is incorrect, please tell be what should be that url??

Also, when I am doing the setting for application in the scc (application template) what url should I put for proxy??

Should it be

HTTPS://sapes1.sapdevcenter.com:443/sap/opu/sdata/iwfnd/SAMPLEFLIGHT/

or

http://localhost:8000/gwproxy

Please help me out.

thanks and regards,

Umapathy

Former Member
0 Kudos

HI Uma,

Application settings in SCC:

Put the following URL in proxy->Application endpoint:

HTTPS://sapes1.sapdevcenter.com:443/sap/opu/sdata/iwfnd/SAMPLEFLIGHT/

Also for testing you should use the same URL that is

HTTPS://sapes1.sapdevcenter.com:443/sap/opu/sdata/iwfnd/SAMPLEFLIGHT/

for the detail on scc config please see the screenshots which i've attached in the below link:

http://scn.sap.com/thread/3294359

Regards,

Abhishek Wajge