Skip to Content
0

HTTP Status 403 - Neither Application connection id nor Application id is provided.

Mar 12 at 10:07 AM

189

avatar image
Former Member

Hi ,

I am facing a issue when trying to access mobile services in web ide getting

HTTP Status 403 - Neither Application connection id nor Application id is provided.

I tested in Postman it’s working fine.

I have passed headers also.

var oModel2 = new ODataModel(“/com.Sap.Demo

/sap/opu/odata/sap/ZCGPRACSLSPOC_CDS“, true,);

oModel2.setHeaders({
“Content-Type”: “application/xml”,
“X-SMP-APPCID”: “myRegistrationId”,
“Authorization”: “Basic UDE5NDE5NTc0NDg6Q2FwZ2VtaW5pQDIxNTQ1”
});

oModel2.read(“/Zcgpracslemp(‘47202’)/Set?$format=json”, null, null, true,
function(data2, response2) {

console.log(data2);
});

neo-app.json

{ "path": "/com.Sap.Demo", "target": { "type": "destination", "name": "mobileservices", "entryPath": "/com.Sap.Demo" }, "description": "mobileservices" }

1.png (26.1 kB)
2.png (10.0 kB)
10 |10000 characters needed characters left characters exceeded

It seems your APPCID is not correct, maybe leave the X-SMP-APPCID off and let CPms handle generating your APPCID.
This is your first connection to CPms where you are registering, The APPCID is not needed.

Create Application Connection

You must explicitly register an application connection (also called the registration ID) with mobile platform.

You can specify customized application properties for client requests. Provide the application connection ID, X-SMP-APPCID, using an explicit request header or a cookie. If the connection ID is missing, mobile platform generates a universally unique ID (UUID), which is communicated to the device through the response header and cookie X-SMP-APPCID.

How did you connect via postman???

Hope this helps.

0
Former Member

Hi Bob,

Thanks for your reply.

Could you please tell me the destinations setting for mobile service as i am getting '500 internal server error'.

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Ali Chalhoub
Mar 27 at 10:59 PM
0

Hello,

I noticed you are passing the entire path to the Gateway CDS service which may not work. The application ID is sufficient to get you to the OData Endpoint.

Thank you

Share
10 |10000 characters needed characters left characters exceeded