cancel
Showing results for 
Search instead for 
Did you mean: 

SAP MII - CORS Support

former_member191528
Participant
0 Kudos

Hello Everyone,

We are currently on SAP MII 14.0 SP7 Patch 0.

We are trying to call an MII transaction embedded in Xacute Query from our UI5 server. We are getting an error message

Failed to load
resource: the server responded with a status of 401 (Unauthorized) http://server/XMII/IlluminatorOData/Rowset(QueryTemplate='ABC_XYZ_AP…CAMAPrevNextInspDate',RowsetId=...

XMLHttpRequest
cannot load

http://server/XMII/IlluminatorOData/Rowset(QueryTemplate='ABC_XYZ_AP…CAMAPrevNextInspDate',RowsetId=...

Do we need to do anything on the sending request side for this issue ?

Thanks,

Kiran

Accepted Solutions (0)

Answers (1)

Answers (1)

ponilango_p
Explorer
0 Kudos

Dear Kiran,

For my restful web service calls to MII queries, I have always authenticated them with the Illum params at the end as below,

<QueryURL>&IllumLoginName=<Username>&IllumPassword=<Password>

Your error notes the call is unauthorised, so this will do!!

Also for Odata generation ensure the required OData Jar file is deployed as per your NW version. Refer the related blog here.

With regards,

Poni

Message was edited to add blog URL by: Ponilango P