cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in fetching metadata doc in android ODATA app

Former Member
0 Kudos

Hi all,

   I am new to SUP and trying out developing sample ODATA application in android. From my application I am able to successfully register and also fetch back the application endpoint url in the mobile phone from SUP. But when I am trying to get the metadata document, I am getting runtime error in the OnSuccess() function. I am attaching the android sourcecode, android log and the Sybase control centre domain log. I am unable to understand what is the issue. Kindly guide me.

thanks and regards,

krishna.

Accepted Solutions (0)

Answers (2)

Answers (2)

shivakishore
Explorer
0 Kudos

Hi Krishna,

Are you able to do a " GET " operation from the browser with URL which you configured in the SCC??

If not please check the configurations in the SCC and gateway.

Please refer the following document which will give you a clear understanding of developing ODATA Applications...

http://scn.sap.com/docs/DOC-33704

thanks & regards,

Shivakishore

Former Member
0 Kudos

HI Kumar,

What I see is your gateway application end point url uses HTTPS via port 443, are you handling the certificate properly in the netweaver gateway, you have to reach to the BASIS team or the one who has configured gateway ? Also can you see wheather HTTPS has port has been configured at 443

Can you check whether you  are able to fetch the metadata by http ?

Are you able to download the file by appending $metada to the application end point?

Regards,

Srinivas Divakarla

Former Member
0 Kudos

Hi,

  I have tried the https metadata link from the browser of the server where SUP is installed and I get the XML data in the browser. Hence there is no problem in the gateway (I suppose). However this is the SAP demo server (provided by SAP) for trying out ODATA applications and it is not possible for me to interact with basis team. Also  http link is not available. Am I missing any configuration steps in Sybase control centre settings for this https??. I am providing the configuration steps that I have done in SCC

1. Went to security node and gave a name to a new security configuration.

2. Wen to application, clicked new and entered APPID, Display name, Description, security configuration (selected the newly created one), domain (default), proxy application endpoint.

3. Created a new application connection by entering the user, selected the application template generated in step 2 and provided an activation code.

Do I need to do anything else for the https netweaver gateway service url??.

Please guide me.

thanks and regards,

krishna.

Former Member
0 Kudos

Hi,

   I have found out that when the service url is http, then the application is working perfectly allright. However when the service url is https (as it is in SAP demo server for netweaver gateway), I am getting the issue that I have stated earlier. Please provide guidance in this regard

1. What additional settings to be done in sybase control center for https application endpoint.

2. Anything extra that needs to be done on android application.

thanks and regards,

Kumar