[progress Communities] [progress Openedge Abl] Forum Post: Re: Deploy Services Failed On...

  • Thread starter Thread starter James Arsenault
  • Start date Start date
Status
Not open for further replies.
J

James Arsenault

Guest
Ricardo, The testserveraxis.bat utility can be used to inspect a Corticon server but it’s an interactive tool and not good in a script. However the Corticon server REST and SOAP APIs can be used to do what you want. For the REST APIs have a look at the swagger documentation (change the host and port to your Corticon server) http://localhost:8850/axis/swagger/ For example the API http://localhost:8850/axis/corticon/decisionService/list Lists deployed decision services. Using curl you can get a list such as { "decisionServices": [ { "loadedFromCdd": true, "name": "AllocateTrade", "edsUri": "C:/Progress/CorticonWork_5.7/SER/CcServerSandbox/DoNotDelete/DecisionServices/C2_1499171248430.619502/AllocateTrade_v1_14.eds", "majorVersion": 1, "minorVersion": 14 }, { "loadedFromCdd": true, "name": "Candidates", "edsUri": "C:/Progress/CorticonWork_5.7/SER/CcServerSandbox/DoNotDelete/DecisionServices/C3_1499171254573.549221/Candidates_v1_14.eds", "majorVersion": 1, "minorVersion": 14 }, { "loadedFromCdd": true, "name": "Cargo", "edsUri": "C:/Progress/CorticonWork_5.7/SER/CcServerSandbox/DoNotDelete/DecisionServices/C0_1499171236109.374753/Cargo_v0_16.eds", "majorVersion": 0, "minorVersion": 16 }, { "loadedFromCdd": true, "name": "ProcessOrder", "edsUri": "C:/Progress/CorticonWork_5.7/SER/CcServerSandbox/DoNotDelete/DecisionServices/C1_1499171240858.284274/ProcessOrder_v1_10.eds", "majorVersion": 1, "minorVersion": 10 } ] } That’s formatted, curl will give unformatted output: C:\tools\curl-7.48.0-win64-mingw\bin>curl localhost:8850/.../list {"decisionServices":[{"loadedFromCdd":true,"name":"AllocateTrade","edsUri":"C:/Progress/CorticonWork_5.7/SER/CcServerSandbox/DoNotDelete/DecisionServices/C2_1499171248430.619502/AllocateTrade_v1_14.eds","majorVersion":1,"minorVersion":14},{"loadedFromCdd":true,"name":"Candidates","edsUri":"C:/Progress/CorticonWork_5.7/SER/CcServerSandbox/DoNotDelete/DecisionServices/C3_1499171254573.549221/Candidates_v1_14.eds","majorVersion":1,"minorVersion":14},{"loadedFromCdd":true,"name":"Cargo","edsUri":"C:/Progress/CorticonWork_5.7/SER/CcServerSandbox/DoNotDelete/DecisionServices/C0_1499171236109.374753/Cargo_v0_16.eds","majorVersion":0,"minorVersion":16},{"loadedFromCdd":true,"name":"ProcessOrder","edsUri":"C:/Progress/CorticonWork_5.7/SER/CcServerSandbox/DoNotDelete/DecisionServices/C1_1499171240858.284274/ProcessOrder_v1_10.eds","majorVersion":1,"minorVersion":10}]} But there are json utilities available to help you parse it. Jim

Continue reading...
 
Status
Not open for further replies.
Back
Top