on 04-03-2014 8:37 AM
Hi,
I'm trying to set-up the ODPSample [MOB261] with my own Gateway service. But the registration fails. I have followed the document provided with MOB261 exactly in the same way as they directed.
See the error:
I have read 14814 occurs due to incorrect username/password and I'm pretty sure of the credentials I provided. They are 100% correct. What else could be the reason behind this? Please help!!
Hi Sreyan,
Can you please share the exact properties added to that security profile? Have you not added SSO cookie Name properties?
Have a look here for HTTPAuthenticationLoginModule.
Are you able to access OData URL in a browser successfully by providing same credentials?
Make sure your backend system has been configured for SSO.
Rgrds,
Jitendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you try with following properties:
Make sure whatever syntax you have provided in command prompt while generating a PSE file for SUP server, that should be given for SNC Partner property. eg.
syntax: D:\sapcryptolib>sapgenpse.exe get_pse -p SNCTEST.pse -r abc.req -x abcpin "CN=xxx.xxxx.com,OU=SAP Web AS,O=SAP Trust Community, C=DE"
SNC Partner: p : CN=xxx.xxxx.com, OU=SAP Web AS, O=SAP Trust Community, C=DE
SNC Name: p: CN=xxx.xxxx.com,OU=SAP Web AS,C=DE
Even after doing everything and setting up SSO, I have defined the OData application with a SSO security configuration. The error is back again.
Also, the login/accept_sso2_ticket entries still do not show up under the instance profile in RZ10. However, on trying to create the connection pool, ping was successful to test the exchange of certificates between the servers.
What is wrong? Am I really missing out something so significant?
You don't have anything to do in android code except setting the right security profile.
userManager.registerUser(username,smpSecurityConfig,password,false);
From the discussion I can see that you are setting SAP ping URL in place of Odata service and you are using the cookie. Do not use any cookies like SAPSSO2 in case of Odata apps.
Check these,
Create new security under security profile with httpAuthenticationLoginModule, control flag as required , url as the Odata URL end URL and delete the NoSecLoginModule, NoSecAuthorizer and NoSecAttributer from authentication, authorization and attributes tabs otherwise the http authentication created will be discarded.
After creating the new security profile, add it to the default domain. Then create a new application with newly created security profile with default domain. Finally connect from device by passing the NW gateway credentials.
Midhun VP
I have used my service URL only and not the SAP ping URL. I have removed the cookie and I did create the security profile with httpAuthenticationLoginModule, control flag as required and deleted the NoSecLoginModule, NoSecAuthorizer and NoSecAttributer from authentication, authorization and attributes tabs, but it still doesn't help! The same error.
What is the Domain you are using ?
When you execute the URL in browser it asks for credentials after passing the NW gateways credentials are you getting the data in XML format/json format ?
Can you provide the end URL you are using.
Can you provide the screen shots of the security profile created security folder under default/new domain you are using to help you further.
Midhun VP
Domain: default
Format for data retrieved: XML
URL: http://indessapd002.ind.hp.com:8000/sap/opu/odata/sap/Y_USER_RFC1/ (Service URL)
Security Profile:
Connection Pool:
Let me know if you need any more information. Thanks a lot for the help!
What is the version of SMP ?
Can you please follow the below steps mentioned:
Midhun VP
What is the error you are getting in SUP server logs ?
You can take registration code from here, http://scn.sap.com/docs/DOC-27409
Midhun VP
None of the examples didn't work out with this security configuration.
So I tried another piece of code using the same security config. It seems to be working fine, but then again, there's a separate issue to it.
The GET method for a list activity works fine. However, I fail to CREATE records.
My code for CREATE method is as follows:
public void createData() throws SMPException
{
ISDMRequest request = new SDMBaseRequest();
String url = Utilities.appSettings.getApplicationEndPoint();
if (!url.endsWith("/")) {
url = url.concat("/");
}
url = url.concat(Utilities.URL_PART_COLLECTION);
request.setRequestMethod(ISDMRequest.REQUEST_METHOD_PUT);
request.setRequestUrl(url);
request.setListener(this);
ISDMODataEntry odta = dataSet.get(0);
odta.putPropertyValue("title_p", "");
odta.putPropertyValue("region", "DLF");
odta.putPropertyValue("country", "IN");
odta.putPropertyValue("username", username);
odta.putPropertyValue("city", "");
odta.putPropertyValue("islocked", "");
odta.putPropertyValue("department", "SAP");
odta.putPropertyValue("lastname", lastname);
odta.putPropertyValue("comm_type", "");
odta.putPropertyValue("telephone", "");
odta.putPropertyValue("password", "welcome1");
odta.putPropertyValue("name", "");
odta.putPropertyValue("e_mail", "");
odta.putPropertyValue("fullname", "");
odta.putPropertyValue("firstname", firstname);
odta.putPropertyValue("language", "EN");
odta.putPropertyValue("title", "");
odta.putPropertyValue("userid", "");
String xmlData= odta.toXMLString();
byte[] data = null;
try {
data = xmlData.getBytes("UTF-8");
} catch (UnsupportedEncodingException e) {
e.getMessage();
}
try{
request.setData(data);
}
catch(Exception e){
e.getMessage();
}
}
Where am I going wrong? I saw this piece of code suggested by somebody else in an older thread
I'm not getting any error while executing. It's just that the record never gets inserted.
Help!!
I was trying to implement this with SSO (com.sybase.security.http.HttpAuthenticationLoginModule), which was being a pain. I can connect now using the default NoSecLoginModule authorization. However, mine is a development system. I don't think this should be done on a Production system?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.