cancel
Showing results for 
Search instead for 
Did you mean: 

Restful sample with Java for getting WebI report info in 4.1

Former Member
0 Kudos

Hi All

Can anyone give me a sample code in JAVA for getting WebI  report information using Restful services in 4.1 SP1 Version

Thanks In Advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi All

Im unable to execute the below URLs and getting error

/documents/{documentId}/reports/{reportId}/elements/{elementId}/properties

/documents/{documentId}/reports/{reportId}/elements/{elementId}/datapaths

/documents/{documentId}/reports/{reportId}/elements/{elementId}/dataset

/documents/{documentId}/reports/{reportId}/elements/{elementId}/axes/

/documents/{documentId}/reports/{reportId}/pages

/documents/{documentId}/reports/{reportId}/inputcontrols

/documents/{documentId}/reports/{reportId}/

Errors:

Not found. (RWS 00056)

Not acceptable, (RWS 00058)

Any Suggestion Please.

former_member197386
Active Contributor
0 Kudos

Hi Alochious,

If you're not familiar about RESTful APIs maybe you should first learn more about this architecture style and maybe read/post on forums (like stackoverflow.com)?

Best regards

Anthony

former_member197386
Active Contributor
0 Kudos

Anyway, here is Azot source, a tool written in Java which allows to perform HTTP requests, maybe it could inspire you:

https://github.com/AnthonyMullerPlayground/azot/blob/master/src/com/sap/azot/WorkflowEngine.java#L28...

Regards,

Anthony

Former Member
0 Kudos

Thanks much Muller. Will do this

former_member197386
Active Contributor
0 Kudos

Hi Alochious,

If you don't need additional help on this question, please could you consider to tag it at "Answered"?

Best regards,

Anthony

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks for your reply

when i try to hit the URL in the browser

http://<host>:<port>/biprws/raylight/v1/documents

its asking for username and password. When I give the login that I used for CMC, the same dialog prompted agains. Am I missing anything here?

daniel_paulsen
Active Contributor
0 Kudos

its not Rest prompting but rather the WACS server requires authentication.  Check the WACS server properties in the CMC to see what type of authentication is required.

Former Member
0 Kudos

Thanks Daniel

Will Try

daniel_paulsen
Active Contributor
0 Kudos

here's a Java sample that exports a webi report.  it should point you in the right direction for just getting the details of the webi document.

http://scn.sap.com/docs/DOC-46367

and another Java sample that changes the data provider: http://scn.sap.com/docs/DOC-45986

Former Member
0 Kudos

Thanks for your reply

when i try to hit the URL in the browser

http://<host>:<port>/biprws/raylight/v1/documents

its asking for username and password. When I give the login that I used for CMC, the same dialog prompted agains. Am I missing anything here?

former_member183750
Active Contributor
0 Kudos

Will this be of help?

http://scn.sap.com/community/restful-sdk/blog/2015/01/05/my-tests-with-restful-api-javascript--1

- Ludek

Senior Support Engineer AGS Product Support, Global Support Center Canada

Follow us on Twitter

Former Member
0 Kudos

Thanks for your reply

when i try to hit the URL in the browser

http://<host>:<port>/biprws/raylight/v1/documents

its asking for username and password. When I give the login that I used for CMC, the same dialog prompted agains. Am I missing anything here?