Skip to Content

SMP3.03 iOS OData Native App Registration Error

Hi everyone,

I'm developing iOS OData native application and this app runs without error on my company's environment.

To be certified by Apple and SAP, I create the same environment on Amazon Web Service(AWS).

When I run this app from iPad and regist this iPad to SMP on AWS, an error occurs and the registration can't complete.

Does anyone kinly teach me an advise me?

This error is as below:

2014-11-28 16:19:54.956#DEBUG#SMPCorrelatedLoggingHandler#null#POST

2014-11-28 16:19:54.956#DEBUG#SMPApplicationSettingsHandler#null#Retrieve appHandler=odata, application=xxxxxxxxxxx and backendURL=/Connections.

2014-11-28 16:19:54.956#DEBUG#ApplicationConnectionHelper#null#Process application connection id.

2014-11-28 16:19:54.956#DEBUG#ApplicationConnectionHelper#null#Request Header ApplicationConnection ID= null

2014-11-28 16:19:54.956#DEBUG#ApplicationConnectionHelper#null#UUID generated as application connection ID: 37fc0c40-b8cc-4be9-a1f0-ff1b3cd680dc

2014-11-28 16:19:54.987#ERROR#SMPApplicationSettingsHandler#null#Unauthorized

I use "HTTP/HTTPS Authentication" in security profile, and I set this URL "http://...sap/bc/bsp/sap/system_test/test_sso2.htm?sap-client=...".

SMP server accesses to ECC in this registration.

The following picture is the success log of my company's environment.

2014-11-28 18:06:41.781#DEBUG#SMPCorrelatedLoggingHandler#null#POST

2014-11-28 18:06:41.781#DEBUG#SMPApplicationSettingsHandler#null#Retrieve appHandler=odata, application=xxxxxxxxxx and backendURL=/Connections.

2014-11-28 18:06:41.782#DEBUG#ApplicationConnectionHelper#null#Process application connection id.

2014-11-28 18:06:41.782#DEBUG#ApplicationConnectionHelper#null#Request Header ApplicationConnection ID= null

2014-11-28 18:06:41.782#DEBUG#ApplicationConnectionHelper#null#UUID generated as application connection ID: 9c086e4c-c159-4232-8c40-8d14773943c3

2014-11-28 18:06:41.914#DEBUG#SMPApplicationODataHandler#null#Add Cookie: javax.servlet.http.Cookie@1ef7330e

2014-11-28 18:06:41.914#DEBUG#SMPApplicationODataHandler#null#Add Cookie: javax.servlet.http.Cookie@7738ec03

2014-11-28 18:06:41.914#DEBUG#SMPApplicationODataHandler#null#Process appSettings request.

2014-11-28 18:06:41.914#DEBUG#SMPApplicationODataHandler#null#Request Method is HTTPPOST

2014-11-28 18:06:41.945#DEBUG#ApplicationODataProducerFactory#null#IN ApplicationODataProducerFactory

2014-11-28 18:06:41.945#DEBUG#ApplicationODataProducer#null#In create entity

2014-11-28 18:06:42.056#DEBUG#URLRewriteOutputStream#null#Rewrite URL in returned appSettings data from http://(SMP Host):8080/applications to http://(SMP Host):8080/odata/applications/v1/(applicationID).

2014-11-28 18:06:42.056#DEBUG#URLRewriteOutputStream#null#The returned appSettings data need not URL rewrite.

2014-11-28 18:06:42.056#DEBUG#URLRewriteOutputStream#null#Rewrite URL in returned appSettings data from http://(SMP Host):8080/applications to http://(SMP Host):8080/odata/applications/v1/(applicationID).

2014-11-28 18:06:42.056#DEBUG#URLRewriteOutputStream#null#The returned appSettings data need not URL rewrite.

2014-11-28 18:06:42.056#DEBUG#URLRewriteOutputStream#null#Rewrite URL in returned appSettings data from http://(SMP Host):8080/applications to http://(SMP Host):8080/odata/applications/v1/(applicationID).

2014-11-28 18:06:42.056#DEBUG#URLRewriteOutputStream#null#The returned appSettings data need not URL rewrite.

2014-11-28 18:06:42.072#DEBUG#URLRewriteOutputStream#null#Rewrite URL in returned appSettings data from http://(SMP Host):8080/applications to http://(SMP Host):8080/odata/applications/v1/(applicationID).

2014-11-28 18:06:42.072#DEBUG#URLRewriteOutputStream#null#Complete rewrite URL.

2014-11-28 18:06:42.072#DEBUG#URLRewriteOutputStream#null#Rewrite URL in returned appSettings data from http://(SMP Host):8080/applications to http://(SMP Host):8080/odata/applications/v1/(applicationID).

2014-11-28 18:06:42.072#DEBUG#URLRewriteOutputStream#null#Complete rewrite URL.

Best Regards

20141202_03.png (16.3 kB)
20141202_02.png (33.6 kB)
20141202_01.png (24.3 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Dec 04, 2014 at 07:52 AM

    @Noboru Kobayashi

    I request you to cross check below things:

    1. Check if you are able to ping application id in the AWS admin cockpit.

    2. Is there any authentication required to access back-end URLs?

    3. Open REST Client, do a post request

    Request:

    Under Authorization:

    If your backend requires any credentials, then pass the same otherwise pass AWS admin cockpit credentials.

    Response: You should get "201 created" status.

    Regards,

    JK


    req.PNG (52.2 kB)
    resp.PNG (87.5 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.