on 10-28-2015 3:04 PM
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&2=13676,U3&2v=@SERVER_XYZ.bgxodcr.xyzerws.com:6400,UP&66=60,U3&68=secEnterprise:Administrator,
UP&S9=12,U3&qe=100,U3&vz=KjNrilKVJnYbA48pTceHuj0EGOYHAfZhOLow1I40hl4,UP}</attr></attrs></content></entry>
Usually you get as internal error when you have a malformed request body.
Please double check its sintaxe.
Regards,
Rogerio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
- Status Code: 500 Internal Server Error
- Connection: close
- Content-Length: 7445
- Content-Type: application/xml
- Date: Sat, 31 Oct 2015 11:11:03 GMT
- Server: Apache-Coyote/1.1
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
Hi,
you must decode the value highlighted (i.e replace, for instance, & by &. I use Javascript which got a function decodeURIComponent.
Regards,
Rogerio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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>
User | Count |
---|---|
80 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.