I am trying to implement a basic role based application using KUIB.
I am following document given below.
But i am getting the Error:
Exception raised for PUT localhost:8800/.../GetRoles Entity=Customer_1747; Operation=OpenEdge.Web.DataObject.MappedOperation_1513: PUT svc:SportsService v1.0.0 uri:Customer/GetRoles: type:Class ; name:Progress.Lang.Object, type-of:Progress.Lang.Object, fn:, numargs:2, num-schemas:0, name:
Error(s) raised: Not Implemented (501)
Caused by: Unable to find class method for OpenEdge.Web.DataObject.MappedOperation_1513: PUT svc:SportsService v1.0.0 uri:Customer/GetRoles: type:Class ; name:Progress.Lang.Object, type-of:Progress.Lang.Object, fn:, numargs:2, num-schemas:0, name: (0)
SendExceptionError status: 501 (Not Implemented)
My catlog includes the following:
> Error(s) raised:
> Not Implemented (501)
> Caused by:
> Unable to find class method for OpenEdge.Web.DataObject.MappedOperation_1513:
The error message seems to indicate that the method "GetRoles" is not found in the Business Entity.
Make sure that that the Business Entity has been deployed and the server is using it.
PDSOE generally would unload the session to remove a previously loaded BE.
You could try to manually re-start the PASOE instance to use the updated BE.
I hope this helps.
I tried that previously and failed.
Thank you for you feedback.
I tried what you suggested. I got the same error.
But as i was altering the code in the method, i changed the OUTPUT param as given below:
METHOD PUBLIC VOID GetRoles(INPUT clientID AS CHARACTER, OUTPUT allowedRoles AS CHARACTER):
By changing the the type of allowedRoles to CHARACTER from CHARACTER Array, I was able to invoke the method successfully.
So i returned a comma seperated string to the frontend.
With a little effort, i was able to assign roles from the backend.
Thanks and Regards,Sudeep Mishra.
Thank you for sharing your findings. This helped to identify the issue.
The issue that you are running into is because the .gen file does not include the EXTENT keyword for the allowRoles field.
There is a bug report for this issue already logged and it expected to be fixed in 11.7.3.
The definition in the .gen file should look like the following:
"ablType": "CHARACTER EXTENT",
Please change back the method definition to use EXTENT and manually update the .gen file.
In this way, the getUserRolesFromServer() method should work fine since it expects the response to be an array.
Thank you and regards,
Edited the .gen file after updating the ABL Service.
Still getting the same error.
The change to the .gen file should have solved the mismatch with the EXTENT parameter.
Perhaps, there is a mismatch between the version of the files that are being used.
Re-starting the server and making sure that the right version of files is used might help.
I would suggest to contact Technical Support if you need someone to assist you on looking at this issue.
(I would like help and do screen-sharing but I am busy at the moment.)
Thank you and regards.