How do I access a Matlab Production Server instance on a virtual machine with RESTful API?
显示 更早的评论
I have successfully installed the Matlab Production Server on a remote virtual machine. I want to create a client using RESTFUL API & JSON to run a web application. For this, I have been following the example for calculating bond price found here https://www.mathworks.com/help/mps/restfuljson/example-web-based-bond-pricing-tool-using-javascript.html
When I run the HTML script on my web browser, nothing happens. I believe the issue is with connecting to the Matlab Production Server instance on my virtual machine. The .ctf function is in the auto-deploy folder in the server instance (a different location from where the Matlab Production Server is installed). How should I specify the url in the javascript code? http://my.ip.address:9910/path/to/server/BondTools/pricecalc ??
Any help would be greatly appreciated. Thanks!
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 RESTful API 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!