cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how to pass username and password with OData service.

Former Member
0 Likes
3,084

Hello All,

I am using IlluminatorOData Service to retrieve data from one ExcuteQuery.

while I am running from browser its asking Username and password of SAP MII.(screenshot attached)

Instead of passing credentials separately I want to pass in URL itself.

I tried with Illumloginname and Illumloginpassword but still its asking for credentials.

Like for WSDL service we are using Illumloginname and password ,is there any separate key words are there for Odata service.

Can any one tell me correct format of passing credentials in url itself.

My URL:   http://server:port/XMII/IlluminatorOdata/Rowset/(QueryTemplate=excutequerypath/queryname,RowsetId=1)....

Also attaching screenshot for reference.

Regards,

Hari.R

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

Hi,

Please try to set IllumLoginname and IllumloginPassword as a request header parameters and try

Regards,

Priyanka GG

Former Member
0 Likes

Hi Priyanka,

Thanks for your response.

     I tried with IllumLoginName and IllumLoginPassword as below.

     http://servername:port/XMII/IlluminatorOData/Rowset(QueryTemplate=QueryPath/QueryName,Ro     wsetId=1)/Row?IllumLoginName=<MIIUsername>&IllumLoginPassword=<password>

Not getting any response from this URL.

Regards,

Hari.

Former Member
0 Likes

Try :

http://servername:port/XMII/IlluminatorOData/Rowset(QueryTemplate=QueryPath/QueryName,Ro     wsetId=1)/Row?j_user=<MIIUsername>&j_password=<password>

Hope it works.