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!
Former Member
Can you first check with REST client if you are able to make connection to SMP server?
Is this native development for Android or iOS?
Regards,
JK
Add a comment