Skip to Content

Unable to use the RESTFul token on BO XI R4.0 SP10

May 18, 2017 at 09:48 AM


avatar image
Former Member

Hi Experts. I need your help resolving an issue I have with RESTful authentication. I managed to get the token with the code on this SAP doc, and I guess the token is fine, as I can logoff with response OK (code 200), but any other requests would show an invalid token FWB 00003 error (code 500).

I've checked the RESTful configuration on all the WACS, and tried other http request implementations with the same results.

Here, the error stack restful-error-stack.txt

Can you please adivse?

public static void getUniverseDetails(String sLogonToken) throws Exception {
 //final DefaultHttpClient httpClient = new DefaultHttpClient();//Deprecated  HttpClientBuilder hcb = HttpClientBuilder.create();
  CloseableHttpClient httpClient =;
    HttpGet httpGetRequest = new HttpGet("/biprws/raylight/v1/universes/12345");
    httpGetRequest.addHeader("Accept", "application/xml");
    httpGetRequest.addHeader("X-SAP-LogonToken", sLogonToken);
    HttpResponse  httpResponse= httpClient.execute(_target, httpGetRequest);		
    System.out.println("Response Code universes : " + httpResponse.getStatusLine().getStatusCode());
  catch(Exception e ) {
    //httpClient.getConnectionManager().shutdown(); //Deprecated
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Daniel Paulsen
Jun 02, 2017 at 07:32 PM

Your sLogonToken must be surrounded in double quotes in the header. I'm assuming that is what is missing.


10 |10000 characters needed characters left characters exceeded