Post by email@example.com
I've successfully set-up an AxisEasyInvokeSoapWS FC to call a WebService and request information from the backend DB.
I would like to set-up this FC in iterator mode in order to go through all the users in one go.
I guess I would somehow need to call the selectEntries() and getNextEntry() functions? or Can I wrap this FC into another connector (that supports iterator mode?).
Any ideas guys???
Thank you in advance!
An FC does not have the Iterator functions, since it does not have 'Modes'. You can either use a Loop to cycle through repeating nodes in the return payload, or script a Connector that uses selectEntries() to make the call in script - for example, using the same FC - and then getNextEntry() to return one repeated node at a time parsed into conn Entry of the Connector.
Here are some tutorial posts I made on hierarchical data and TDI:
Here is part one (written many moons ago): http://www.tdiingoutloud.com/2013/09/json-and-xml-tutorial-part-1.html
and then (forgive the numbering :P)
http://www.tdiingoutloud.com/2016/11/json-and-xml-tutorial-part-5.html This one about scripting a connector to hide the complexity of the calls