sap - How to add headers to odata get service -
i working on following odata service:
https://10.49.78.69:8083/gateway/odata/sap/soa_login_get_data;v=1/inspectionset
this service runs when following 4 headers defined.
interfaceid adfca_crm_sbl_023 languagetype enu / ara username sheenar password sheenar#123
i have tried using filters follows no success.
[https://10.49.78.69:8083/gateway/odata/sap/soa_login_get_data;v=1/inspectionset?$filter=username eq 'sheenar' , password eq 'sheenar#123' , interfaceid eq 'adfca_crm_sbl_023' , languagetype eq 'enu'
guess headers have declared specifically.
kindly suggest how these headers can written while setting data model in sap ui5.
after creating instance odatamodel
,
var odatamodel = new sap.ui.model.odata.odatamodel(sserviceurl, mparameters); odatamodel.setheaders(mheaders)
parameters:
{object} mheaders :the header name/value map.
read more here
Comments
Post a Comment