Skip to Content
author's profile photo Former Member
Former Member

Issue with SMP 3.0 and Native SDK

Hello,

I set up an SMP 3.0 server and app. and have the following code:

SMPClientConnection* clientConn = [SMPClientConnection initializeWithAppID:@"com.openpeak.native" domain:@"default"

secConfiguration:@"Generic_USER_PASS_auth"];

[clientConn setConnectionProfileWithUrl:@"http://sapsmp.openpeak.org:8083"];

NSError* error = nil;

[SMPUserManager setDelegate:self];

SMPUserManager* userManager = [SMPUserManager initializeWithConnection:clientConn];

[userManager registerUser:@"user" password:@"password" error:&error isSyncFlag:NO];


However, it does not work at all!


I get no registration, and instead, I get the following cryptic, useless output:


2014-10-30 22:49:53.090 ODataSampleApp[55463:285519041] Initializing Client connection with ApplicationID : com.openpeak.native Domain : default SecurityConfiguration: Generic_USER_PASS_auth

2014-10-30 22:49:53.091 ODataSampleApp[55463:285519041] Please use either oDataConnectivity library or oDataRequest library

2014-10-30 22:49:53.091 ODataSampleApp[55463:285519041] Assigning the selectors

2014-10-30 22:49:53.091 ODataSampleApp[55463:285519041] Automatic Registration : Registering user ASYNCHRONOUSLY with user name : user, security configuration : (null)



I have been banging my head against this for 2 days now, with no idea of where to go... the documentation I have found on this site has either been sorely lacking or just plain wrong!! please help, I am at wits end!



P.S:


The attached screenshot shows a postman POST that i attempted to use to no avail ... sending off that data gives me a 401 error...


Do I have something set up wrong? Am I missing something here?? Please help!






Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 06, 2014 at 03:28 AM

    Former Member

    Can you first check with REST client if you are able to make connection to SMP server?

    Register the Application ID

    Is this native development for Android or iOS?

    Regards,

    JK

    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.