cancel
Showing results for 
Search instead for 
Did you mean: 

Getting error in connecting ios simulator with SMP3.0 server

Former Member
0 Kudos

Hi,

We have configure ODATA service on SMP3.0 server  document provided by SAP of "How to configure Application using Security Profile". We are using the SAP Netweaver Gateway DemoSystem for calling the ODATA services-HTTPS (got access of it using http://scn.sap.com/docs/DOC-31221).We also use Server Certificate to get successfully ping to backend steps performed to import the OData Service URL certificate into smp_keystore.(by using  ).


Now we are trying to build Native app on ios platform using pdf provided in IOS Development study material with the exercise material provided by SAP to call the app deployed on SMP3.0 server.But we are getting an


Error:- Could not connect to server(screenshot attached) client side


Error:-.

2014 02 27 23:42:07#0-800#WARN#com.sybase.security.http.HttpAuthenticationLoginModule##anonymous#http-bio-8080-exec-4###Anonymous authentication is not supported. |

2014 02 27 23:42:09#0-800#WARN#com.sybase.security.http.HttpAuthenticationLoginModule##anonymous#http-bio-8080-exec-4###Server responded with the status code "401"|


Can anyone please help me out in resolving this issue.


Thanks,


Anjali Agrawal

Accepted Solutions (0)

Answers (1)

Answers (1)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Error:- Could not connect to server(screenshot attached) client side

I dont see any attached screenshot here.

Did you get a chance to go through this document

Rgrds,

Jitendra

Former Member
0 Kudos

Hi Jitendra,

Have inserted an image below.And also have gone through the link send by you but we are using URL with HTTPS which requires some exchange of certificate (client and server).Have perform Server Certificate exchange process with SAP Netweaver Gateway DemoSystem and our SMP Server3.0.

Also wanted to know is their any requirement for client certificate import to keystore of SMP server for successful device/simulator registration to access OData service(HTTPS).

If you have any idea on this please provide me with some material.

Thanks,

Anjali

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

I would like to involve for further assistance.

brenton_ocallaghan
Active Participant
0 Kudos

Hi Guys,

This looks like an interesting one. From my experience the first things I would check are the following:

  • Have you setup your back-end Odata service to be authenticated to correctly (i.e. is it anonymous from the SMP server and are the credentials OK?)
  • Have you setup your authentication provider correctly?

Anonymous authentication is not supported. |

2014 02 27 23:42:09#0-800#WARN#com.sybase.security.http.HttpAuthenticationLoginModule##anonymous#http-bio-8080-exec-4###Server responded with the status code "401"|

This sounds like your app is trying to login with no credentials or with an incorrect app ID - I would check that first.

Happy to help more if you want to share the server config of the app, security and backend.

Cheers,

Brenton.

Former Member
0 Kudos

Hi Brenton,

As I have performed the steps for server certificate exchange with SAP Netweaver Gateway DemoSystem which provides me with Sample OData Service (HTTPS) it does not include any need to use"Allow Anonymous Connection" option even without using that I am able to successfully ping the backend server as shown below..

Know my requirement is to make Native app and get  my ios device/simulator to connected to SMP server 3.0.

So I am referring the link which specifies a need to generate client certificate(which will help in authentication betn the client and server when using HTTPS).

Here also have successfully exchange the client and server certificate but when theirs need to generate the .csr I am getting the following error:-

Error:-keytool error: java.lang.Exception: Alias <sapserverca> has no key

Have stuck here badly and not able to find out solution I think their might be some step missing in this document or some thing which we are not doing correctly.

Can u please help me

          -With some material which involves steps to generate the CSR

          -Some link which will help in configuring OData Service(HTTPS) in SMP3.0

         

Any of your guidance regarding this will be helpful to us.Will be waiting for your reply.

Thanks,

Anjali Agrawal