cancel
Showing results for 
Search instead for 
Did you mean: 

how to pass username and password with OData service.

Former Member
0 Kudos

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_member291693
Discoverer
0 Kudos

Hi,

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

Regards,

Priyanka GG

Former Member
0 Kudos

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 Kudos

Try :

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

Hope it works.