Hi, I am trying to utilize the Routers available on the Predix Studio application to evaluate the possibility of being able to push data based on a certain event from my external application into Predix Studio.
The documents talk about a set of APIs that can be accessed using the base Resource https://127.0.0.1:8443/bsrouter/
However, since the instance of Bitstew I am using is hosted under https://get-logistics-dev.mixdevelopernetwork.com , none of the Router API Endpoints are accessible on this server. Any idea what are the required settings to make them available for my usage?
Under Administration Section of my Bitstew Instance, I can see that the router is configured under https://127.0.0.1:8443/bsrouter
Answer by Predix Studio Team · Oct 16, 2017 at 12:07 PM
As Jeremmy told, Router for 10.3 required authentication. If Jmeter is used for dataload, add HTTP Authorisation Manager If SOAPUI is used for dataload, add Basic Authentication (ask MDN for user/password) https://127.0.0.1:8443/bsrouter/RouteMessage or https://127.0.0.1:8443/bsrouter/servlet/RouteMessage example of soap message for Asset:
urn:com.bitstew.manage.asset
AST1 BitStewSystems QA
To visualize:
Also, check router status, expected STARTED: https://127.0.0.1:8443/bsrouter/RouterInit (to start router use : https://127.0.0.1:8443/bsrouter/RouterManager/startRouter )
Answer by Predix Studio Team · Oct 16, 2017 at 12:09 PM
You found the right documentation, and the Router is running, but only locally accessible for that instance.
The Router can be made externally accessible with appropriate authentication (typically basic authentication for the current V10.3) or network security, you'll have to talk to your Predix Studio admin about that.
Answer by Predix Studio Team · Oct 16, 2017 at 11:54 AM
Note that some of those examples are using the legacy V4 endpoints.
Use https://127.0.0.1:8443/bsrouter/RouteMessage, not the one with servlet in the path. And use https://127.0.0.1:8443/bsrouter/RouterStatus, not RouterInit.