on 11-08-2017 1:44 PM
Hello All,
I am trying to get SAP PO message statistics from an Angularjs(Angular 4) application. For this I am making a Get request to messageoverviewqueryservlet as given here.
I am expecting a response similar to the one given below
but what I get seems to be the HTML code for login page. Also whenever I enter the link
(http://<PO_server>:<PO_port>/mdt/messageoverviewqueryservlet?component=<XIComponentName>&view=<ViewNameKey>&begin=<IntervalBeginTime>&end=<IntervalEndTime>) in the browser I get stuck at the login window and get the response only after I login.
Is there a way to pass username and password to this page from a program so that I can get the XML response in my Angular app? I have tried passing username and password via get request headers but that didn't work
Can anyone please help me solve this?
Thanks,
Shardul Sane
Hi Shardul,
You can add to your URL the parameters ->
j_username=XXXX&j_password=YYYY
Using your user and password instead of XXX and YYYY respectively.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.