Skip to Content
avatar image
Former Member

using sap logon token


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>tag:sap.com,2010:bip-rs/logon/long</id><title 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&2=13676,U3&2v=@SERVER_XYZ.bgxodcr.xyzerws.com:6400,UP&66=60,U3&68=secEnterprise:Administrator,

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


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 31, 2015 at 10:56 AM

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

    Please double check its sintaxe.

    Regards,

    Rogerio

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 28, 2015 at 03:15 PM

    Hi,

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

    Regards,

    Rogerio

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Prithviraj Shekhawat

      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>