on 06-20-2016 10:33 AM
Hi experts,
Just want to ask what is the error for this.
{ "error" : { "code" : -1001, "message" : { "lang" : "en-us", "value" : "Invalid session." } } }
Here's my Service Layer: https://192.168.0.30:50000/b1s/v1/$metadata
See image below:
Here's my setting in my ServiceLayer/conf "b1s.conf"
See image below:
I've already restarted my Service Layer. But still the same.
Hi,
Although it is a relatively old thread and most likely Bryan found the answer since the time he posted this question, I think that it's worth to post my findings for anyone else who may encounter this type of error.
Actually I decided to create my own self-signed certificate which required me to issue several commands on the HANA server. I used a guide available here:
Creating a Self-Signed SSL Certificate | Heroku Dev Center
When you decide to create a certificate by yourself you most likely would also like to adjust information about the server and its certificates in the Service Layer config files:
"/usr/sap/SAPBusinessOne/ServiceLayer/conf/httpd-b1s-lb.conf"
"/usr/sap/SAPBusinessOne/ServiceLayer/conf/httpd-b1s-lb-member-50001.conf"
"/usr/sap/SAPBusinessOne/ServiceLayer/conf/httpd-b1s-lb-member-common.conf"
Also increasing the log level might be helpful for tracking the error issue - in configs above.
Check also settings in:
"/usr/sap/SAPBusinessOne/ServiceLayer/lib/Conf/b1-local-machine.xml"
For the CORS issue I decided to use most generic option: "*" for allowed hosts although I think that since SL uses port number 8000 it should be enough to allow only http://<hanaservername>:8000/
In case there is a problem with your username and password I'd suggest using:
"/usr/sap/SAPBusinessOne/ServiceLayer/bin/set-hana-credential"
Good luck!
Kind regards,
Radek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Brian,
Are you able to access the documentation at:
Just to see if Service Layer is really running or not.
You need to be able to see the documentation page + login with Advanced Rest Client or Postman + see the metadata details in Postman/ARC or in the browser before being able to add the reference in .NET.
Regards,
Trinidad.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bryan,
IIRC what we were told was that a login needs to be performed with the Service Layer before you can discover the services.
Since you don't have the sample HTML5 app we had, you can try sending a POST request to the login service using something like POSTMAN. This will get you a success token when you login successfully.
After that try again in Visual Studio.
Best regards,
Pedro Magueija
User | Count |
---|---|
86 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.