callActionController is only available inside a dialog initiated by an action or when using the new openModalDialog() function in 6.0.
To call your service layer from a regular html view you need to use regular rest calls.
So we are using our own dialogs to call the actions controller directly via REST, but we get 401 unauthorized failure. What do we need for a proper request?
I've crafted some javacript to send the following information:
By "your own dialog" I assume you are not using the dialog associated with an action in plugin.xml and are not using either the openModalDialog from 6.0. You cannot have your action controller invoked from such custom code.
You need to refactor your code so that your custom dialog calls a simple java service which in turns calls the logic from your action controller.