on 12-02-2014 6:47 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jitendra,
Thanks for your response.
I checked the operation you kindly teach me.
1. Check if you are able to ping application id in the AWS admin cockpit.
Yes. Message:"Backend system reached successfully" appears.
2. Is there any authentication required to access back-end URLs?
Yes.UserID and password are required.
3. Open REST Client, do a post request
Requesting by POSTMAN(Chrome Add-in), the response:"200 OK" appears.
Regards,
Noboru
Hi Jitendra,
I'm sorry for my misunderstanding.
3. Open REST Client, do a post request
I checked again.
I tried to "POST" request by POSTMAN.
Request parameters is as below:
URL: http://{SMPHost}:{port}/odata/application/latest/{ApplicationID}/Connections
Headers:
(1)Content-Type:application/atom+xml
(2)Authorization: ECC UserID (SMP server accesses to ECC in this security profile)
When I pushed "Send" button, POSTMAN required the authentication of security profile.
I tried it by every means I know, but all of my trials ended in error (401 unauthorized).
The following is the capture of POSTMAN
The following is the popup screen requring a certification.
Regards,
Noboru
You are missing one header parameter. (X-SMP-APPCID)
You are passing a wrong URL:
Please try with
http://smpserverhostname:8080/odata/applications/latest/appid/Connections
Which security profile you have selected while creating an app id in the admin cockpit? If it is "Admin" then you have to pass SMP management cockpit credentials in authorization.
Please check below link:
Regards,
JK
User | Count |
---|---|
76 | |
11 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.