cancel
Showing results for 
Search instead for 
Did you mean: 

How to send username and password to messageoverviewqueryservlet from external system

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

iaki_vila
Active Contributor

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.