I am trying to read a rapid data with RWS but I get a response 400 Bad Request.
It seems to work on data declared in loaded modules, but as soon as I try to read from an installed module I fail.
I have not found specific information in the Application manual about data symbols in an installed module.
Any help is greatly appreciated.
PS, For now, I am not interested in a subscription, just reading the data with a GET is all I need.
Yes it’s possible I do so myself.
Can you post what your request looks like?
rwRAPIDResource.open(“GET”,“/rw/rapid/symbol/data/RAPID/T_ROB1/UI_GlobalData/C_UIHeader”,true);
UI_GlobalData is an installed module in all tasks, I dont know if the symbol url is different for installed modules. It works when I replace the symbol url to something that is declared in a loaded module.
If you have it working, can you post your request?
Best regards
Is the module installed as shared?
In that case it should be specified as #SYS, don’t forget to encode the # to avoid errors.
I think I wrote %23 instead of #.
Just to be clear.
rwRAPIDResource.open(“GET”,“/rw/rapid/symbol/data/RAPID/T_ROB1/#SYS/C_UIHeader”,true);
rwRAPIDResource.open(“GET”,“/rw/rapid/symbol/data/RAPID/T_ROB1/%23SYS/C_UIHeader”,true);
Depending if you html encode the string before or after this point.