on 04-11-2016 2:18 PM
Hi,
When calling api to create new report document 'http://<My Server Internal IP>:6405/biprws/raylight/v1/documents'
Sample of post request
string xmlToPost = string.Format("<document><name>{0}</name><folderId>{1}</folderId></document>", newReportName, folderId); ;
WebRequest request = WebRequest.Create(postUrl);
request.Method = "POST";
string postData = xmlToPost;
byte[] byteArray = Encoding.UTF8.GetBytes(postData);
logonToken = "\"" + logonToken + "\"";
request.Headers.Set("X-SAP-LogonToken", logonToken);
request.ContentType = "application/xml";
request.ContentLength = byteArray.Length;
Stream dataStream = request.GetRequestStream();
dataStream.Write(byteArray, 0, byteArray.Length);
dataStream.Close();
WebResponse response = request.GetResponse(); (getting internal server error here)
I am getting error The remote server returned an error: (500) Internal Server Error
What could be possible reasons?
Thanks
Samir
I got reason for this after few testing.
The report i am creating into folder which I have manually created using 'X' user in web intelligent client on server.
Now when adding new report using Rest api to same folder and using same 'X' user, i got this error.
This seems permission / user security error as, after adding user 'X' to folder 's user security, it works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
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.