Skip to Content
avatar image
Former Member

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

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
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • 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.


    Add comment
    10|10000 characters needed characters exceeded