I recently started development on Omnicore project. I have created an robot simulation with RW7 Omnicore. And I would like to use the web service as I did in the past for RW6.
And I found online that Omnicore is can support https and http where you just need to modify the parameter on appweb.conf listen port.
I tried to change the first parameters from: #Listen -1
ListenSecure -1
to
Listen -1 #ListenSecure -1
But when I use Listen instead of ListenSecure, after reboot the virtual controller, I have error on controller
It doesn’t have any issue when I switch back to ListenSecure.
May I know did Omnicore required particular option to enable web service?
And I couldn’t find the virtual controller listening port from the netstat -aon | FindStr command as thread below. I am only able to get a response if I try on the robotstudio.exe PID instead of RobotVC.exe
And the webservice command doesn’t work on the robotstudio.exe listening port.
Thanks for pointing out some mistakes in the initial post. I have now corrected the post to contain correct information for OmniCore.
So if you want OmniCore to listen on HTTP as well as HTTPS, you’ll have to uncomment the Listen -1 and change the -1 to some open port. I wouldn’t recommend disabling HTTPS on OmniCore as that would cause RobAPI exceptions in RobotStudio.
Then, regarding “netstat -aon | FindStr”, you should find the process Vrchost64.exe for OmniCore controllers instead and use that pid in the command.
?xml version=“1.0” encoding=“UTF-8”?
html xmlns=“XHTML namespace”
head
base href=“http://127.0.0.1:51000/”
head
body
div class=“status” span class=“code”>-1073414146
span
class=“msg”>C:\a\1\s\S0.01.Kernel\Areas\RobApi2\Components\rws_rapid\rws_resource_rapid_modules.cpp[62] Server cannot generate response for given accept header code:-1073414146 icode:-1
span
div
body
html