I am using HTTP Client Connector in Passive Mode, to get Hooks executed I am using HTTPConnector.callreply(Entry) api instead of HTTPConnector.connector.queryReply(Entry), so just want to know what all hooks of the connector would be executed.

Post by Sufyan KhanI am using HTTP Client Connector in Passive Mode, to get Hooks executed I am using HTTPConnector.callreply(Entry) api instead of HTTPConnector.connector.queryReply(Entry), so just want to know what all hooks of the connector would be executed.

You can open the Hooks tab with the Connector in this mode and see what happens under the CallReply branch: so Output Map, Before CallReply, After CallReply and Input Map.

Post by Sufyan KhanI am using HTTP Client Connector in Passive Mode, to get Hooks executed I am using HTTPConnector.callreply(Entry) api instead of HTTPConnector.connector.queryReply(Entry), so just want to know what all hooks of the connector would be executed.

You can open the Hooks tab with the Connector in this mode and see what happens under the CallReply branch: so Output Map, Before CallReply, After CallReply and Input Map.

Post by Sufyan KhanI am using HTTP Client Connector in Passive Mode, to get Hooks executed I am using HTTPConnector.callreply(Entry) api instead of HTTPConnector.connector.queryReply(Entry), so just want to know what all hooks of the connector would be executed.

You can open the Hooks tab with the Connector in this mode and see what happens under the CallReply branch: so Output Map, Before CallReply, After CallReply and Input Map.

Actually I have to make an HTTP call 4~5 times so instead of using 4~5 connectors I am using 1 connector in Passive mode and from script I am setting params and executing it, so is there a way to execute Error Hooks say Default On Error in Passive Mode?

Post by Sufyan KhanI am using HTTP Client Connector in Passive Mode, to get Hooks executed I am using HTTPConnector.callreply(Entry) api instead of HTTPConnector.connector.queryReply(Entry), so just want to know what all hooks of the connector would be executed.

You can open the Hooks tab with the Connector in this mode and see what happens under the CallReply branch: so Output Map, Before CallReply, After CallReply and Input Map.

Actually I have to make an HTTP call 4~5 times so instead of using 4~5 connectors I am using 1 connector in Passive mode and from script I am setting params and executing it, so is there a way to execute Error Hooks say Default On Error in Passive Mode?

If you executing AL Connector methods then you should be able to code the Hooks. I always call the Connector Interface methods - i.e. thisConnector.connector.queryReply() for the HTTP Client Connector. In this case I have to wrap the call in a try-catch block to deal with exceptions.

Post by Sufyan KhanI am using HTTP Client Connector in Passive Mode, to get Hooks executed I am using HTTPConnector.callreply(Entry) api instead of HTTPConnector.connector.queryReply(Entry), so just want to know what all hooks of the connector would be executed.

You can open the Hooks tab with the Connector in this mode and see what happens under the CallReply branch: so Output Map, Before CallReply, After CallReply and Input Map.

Actually I have to make an HTTP call 4~5 times so instead of using 4~5 connectors I am using 1 connector in Passive mode and from script I am setting params and executing it, so is there a way to execute Error Hooks say Default On Error in Passive Mode?

If you executing AL Connector methods then you should be able to code the Hooks. I always call the Connector Interface methods - i.e. thisConnector.connector.queryReply() for the HTTP Client Connector. In this case I have to wrap the call in a try-catch block to deal with exceptions.try {returnEntry = httpCI.queryReply(sendEntry);} catch (ex) {task.logmsg("ERROR", "Error making HTTP call: " + ex + "\nSend Entry: " + sendEntry.toJSON());}Note that I often write out Entry objects in JSON format so that I can write ALs that monitor and analyze log output.

Hello Eddie,

Thanks for your response.

Coding hooks you meant implementing TDI Hooks APIs (not sure if exist), if yes any reference link or doc would be helpful as I had never done that before.

Yes I was doing the same, using queryReply api wrapped with try-catch for any exceptions.

For analysis and monitoring - if code snippet is handy could you please show me a bit like how you are doing?

Post by Sufyan KhanI am using HTTP Client Connector in Passive Mode, to get Hooks executed I am using HTTPConnector.callreply(Entry) api instead of HTTPConnector.connector.queryReply(Entry), so just want to know what all hooks of the connector would be executed.

You can open the Hooks tab with the Connector in this mode and see what happens under the CallReply branch: so Output Map, Before CallReply, After CallReply and Input Map.

Actually I have to make an HTTP call 4~5 times so instead of using 4~5 connectors I am using 1 connector in Passive mode and from script I am setting params and executing it, so is there a way to execute Error Hooks say Default On Error in Passive Mode?

If you executing AL Connector methods then you should be able to code the Hooks. I always call the Connector Interface methods - i.e. thisConnector.connector.queryReply() for the HTTP Client Connector. In this case I have to wrap the call in a try-catch block to deal with exceptions.try {returnEntry = httpCI.queryReply(sendEntry);} catch (ex) {task.logmsg("ERROR", "Error making HTTP call: " + ex + "\nSend Entry: " + sendEntry.toJSON());}Note that I often write out Entry objects in JSON format so that I can write ALs that monitor and analyze log output.

Hello Eddie,Thanks for your response.Coding hooks you meant implementing TDI Hooks APIs (not sure if exist), if yes any reference link or doc would be helpful as I had never done that before.Yes I was doing the same, using queryReply api wrapped with try-catch for any exceptions.For analysis and monitoring - if code snippet is handy could you please show me a bit like how you are doing?Regards,Sufyan

If you have not done so yet, I suggest you work through the TDI tutorials in the Getting Started guide. You'll find the link at the top of http://tdi-users.org, along with videos and HowTo write-ups.