cancel
Showing results for 
Search instead for 
Did you mean: 

using sap logon token

Former Member
0 Kudos


Hi ,

I sent POST request to BO server in order to recieve logon token

I recieved below sap logon token response from server ,I need to pass token value in subsequent requests

Can I pass below highlighted in bold as token value in subsequent requests

<entry xmlns="http://www.w3.org/2005/Atom"><author><name>@SERVER_XYZ.bgxodcr.xyzerws.com:6400</name></author><id>t... type="text">Logon Result</title><updated>2015-10-28T14:06:04.008Z</updated><content type="application/xml"><attrs xmlns="http://www.sap.com/rws/bip"><attr name="logonToken" type="string">@SERVER_XYZ.bgxodcr.xyzerws.com:6400@{3&amp;2=13676,U3&amp;2v=@SERVER_XYZ.bgxodcr.xyzerws.com:6400,UP&amp;66=60,U3&amp;68=secEnterprise:Administrator,

UP&amp;S9=12,U3&amp;qe=100,U3&amp;vz=KjNrilKVJnYbA48pTceHuj0EGOYHAfZhOLow1I40hl4,UP}</attr></attrs></content></entry>


Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Usually you get as internal error when you have a malformed request body.

Please double check its sintaxe.

Regards,

Rogerio

Former Member
0 Kudos

Hi Rogerio,

Below is the request body I am using as per Restful guide

<document>

    <name>Test</name>

<folderId>12888</folderId>

</document>

Error I am getting is:

  1. Status Code: 500 Internal Server Error
  2. Connection: close
  3. Content-Length: 7445
  4. Content-Type: application/xml
  5. Date: Sat, 31 Oct 2015 11:11:03 GMT
  6. Server: Apache-Coyote/1.1
Former Member
0 Kudos

Hi,

I resolved this by put check on show error stack and restarted file and enabled file repository server

Now I am able to create document

I am using mozilla Restclient , how can I integrate this with my java application, I am using Eclipse for java

Former Member
0 Kudos

Hi Vaibhav,

Kindly refer the link for the documentation: How to set up development environment with Eclipse IDE for SAP BusinessObjects BI REST Web services ...


The above document provides a step-by-step description on how to start developing java applications in an Eclipse environment. The above document also includes the sample which simply shows how to log in and log off the platform.

Hope this helps.

Please mark the thread as Answered or Helpful, if you feels any response is able to help you in resolving your problem, so that other users can also refer the same blog if they faces the same issue in future.

Thanks,

Shailendra

former_member197386
Active Contributor
0 Kudos

Hi Vaibhav,

Do you still need help?

Regards,

Anthony

Former Member
0 Kudos

Hi Anthony,

Sorry for late reply

I will go through link provided by Shailendra and will come back if I face any doubt

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

you must decode the value highlighted (i.e replace, for instance, &amp; by &. I use Javascript which got a function decodeURIComponent.

Regards,

Rogerio

Former Member
0 Kudos

Hi Rogerio,

Do you think the value I highlighted in bold above should be the token value or the token value should be only "SERVER_XYZ.bgxodcr.xyzerws.com:6400" , basically I just want to know which part I should consider as token value in response I got

Former Member
0 Kudos

Hi ,

the logonToken is the entire string.

May I ask you which programming language you´re using ?

Regards,

Rogerio

Former Member
0 Kudos

Hi,

I am using mozilla restclient for sending request to BO server

Former Member
0 Kudos

Take the Resulting logontoken and add it to the header as

X-SAP-LogonToken: "MyServer:6400@{3&2=10209,U3&2v=MyServer:6400,UP&66=60,U3&68=secEnterprise:Administrator,UP&S9=12,U3&qe=100,U3&vz=yCFAVGKDkzcAIefcqibDE9m8WGhlPyIyPjzijsiChX8,UP}"

Once you have it in the headers it can be used with subsequent requests.

Thanks,

Prithvi

Former Member
0 Kudos

Thanks Prithviraj

I am able to use Logon token now

I am trying to create blank document now but getting below error,I verified the folderId also

<error>

  <error_code>999</error_code>

  <message>Internal error</message>

</error>

Below is the request body I am passing

<document>

    <name>Test</name>

<folderId>12888</folderId>

</document>