tag:blogger.com,1999:blog-4476863800158400170.post5281141790899259018..comments2023-01-03T17:58:54.267+01:00Comments on TDIing out loud, ok SDIing as well: JSON and XML Tutorial - Part 1Eddie Hartmanhttp://www.blogger.com/profile/12264507239868838185noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-4476863800158400170.post-26988014074375092962016-08-24T08:57:31.732+02:002016-08-24T08:57:31.732+02:00Hi Dave,
You can do stuff like this in the Before...Hi Dave,<br /><br />You can do stuff like this in the Before Init Hook of a Connector, OR you can do it all from an Empty Script instead (which is what I do). These two lines of script set up an HTTP Client Connector and initialize it:<br /><br />http = system.getConnector("ibmdi.HTTPClient");<br />http.initialize(null);<br /><br />So after this you can use and reuse this component to Eddie Hartmanhttps://www.blogger.com/profile/12264507239868838185noreply@blogger.comtag:blogger.com,1999:blog-4476863800158400170.post-48297013915638667672016-08-24T08:00:36.829+02:002016-08-24T08:00:36.829+02:00Hi Eddie,
Do i have to write this code in the Bef...Hi Eddie,<br /><br />Do i have to write this code in the BeforeInitialize or Prolog hook of httpclient connector ?<br />I have understand your input to some extent but I am not sure where should I write this code in TDI ?<br /><br />Best Regards,<br />Davesachindavehttps://www.blogger.com/profile/04651963752794270573noreply@blogger.comtag:blogger.com,1999:blog-4476863800158400170.post-7093736567134359412016-08-23T08:27:29.304+02:002016-08-23T08:27:29.304+02:00Hi Eddie,
Thanks for your reply but it will take ...Hi Eddie,<br /><br />Thanks for your reply but it will take a while for me to understand your input as I am a newbie on TDI. :)<br /><br />Best Regards,<br />Davesachindavehttps://www.blogger.com/profile/04651963752794270573noreply@blogger.comtag:blogger.com,1999:blog-4476863800158400170.post-6932752152171815832016-08-22T16:22:00.743+02:002016-08-22T16:22:00.743+02:00@sachindav - that's a tall order. I plan to fi...@sachindav - that's a tall order. I plan to finish off a post regarding how to play with REST APIs using TDI, because much of my exploratory work is done using the AL Debugger. All you need is an initialized http client connector:<br /><br />http = system.getConnector("ibmdi.HTTPClient");<br />http.initialize(null);<br /><br />Done! Then you can set up an entry which has any number Eddie Hartmanhttps://www.blogger.com/profile/12264507239868838185noreply@blogger.comtag:blogger.com,1999:blog-4476863800158400170.post-50504874305773669852016-08-22T15:56:55.842+02:002016-08-22T15:56:55.842+02:00Hi Eddie,
We are looking sample HttpClient connec...Hi Eddie,<br /><br />We are looking sample HttpClient connector to use ISIM Rest API.<br />Please show us some light in the world of dark IBM documentation :)<br /><br />Best Regards,<br />Davesachindavehttps://www.blogger.com/profile/04651963752794270573noreply@blogger.comtag:blogger.com,1999:blog-4476863800158400170.post-72806807799728310882016-08-03T22:41:30.500+02:002016-08-03T22:41:30.500+02:00First off, I would suggest dropping your question ...First off, I would suggest dropping your question in the TDI Forum:<br /><br />https://groups.google.com/group/ibm.software.network.directory-integrator/topics?gvc=2<br /><br />And I've added to the answer already posted to stackoverflow, Gaurav :)Eddie Hartmanhttps://www.blogger.com/profile/12264507239868838185noreply@blogger.comtag:blogger.com,1999:blog-4476863800158400170.post-63914335740206721702016-08-02T09:22:58.347+02:002016-08-02T09:22:58.347+02:00Hi Eddie,
Could I please draw your attention to o...Hi Eddie,<br /><br />Could I please draw your attention to one of my problems at http://stackoverflow.com/questions/38713203/handle-multi-valued-json-response-in-tivoli-directory-integrator? This might not be the right place but I do see you have handled this kind of situation with TDI quite frequently and hence asking for your help.<br /><br />Thanks and Regards,<br />Gaurav.Gaurav Sinhahttps://www.blogger.com/profile/04970295457443577562noreply@blogger.comtag:blogger.com,1999:blog-4476863800158400170.post-31046754811741377922014-10-23T15:45:18.877+02:002014-10-23T15:45:18.877+02:00Thank you Eddie!
For any wandering TDI:ers with s...Thank you Eddie!<br /><br />For any wandering TDI:ers with similar questions, this is the link to my question on the google forum:<br />https://groups.google.com/forum/#!topic/ibm.software.network.directory-integrator/BE9SV_CWmbY<br /><br />@Eddie, I did find sort of a "workaround" - but it gave me additional questions. :-)Anonymoushttps://www.blogger.com/profile/01601570233357804786noreply@blogger.comtag:blogger.com,1999:blog-4476863800158400170.post-15596444377184822482014-10-23T14:08:49.233+02:002014-10-23T14:08:49.233+02:00@John - I'm not totally sure what you mean. Co...@John - I'm not totally sure what you mean. Could you post an example or two, e.g. in the TDI Forum, and then I can whip up a little Javascript in response.Eddie Hartmanhttps://www.blogger.com/profile/12264507239868838185noreply@blogger.comtag:blogger.com,1999:blog-4476863800158400170.post-24346810136757478572014-10-23T14:07:54.994+02:002014-10-23T14:07:54.994+02:00@Herta - Well there are new Connectors for QRadar ...@Herta - Well there are new Connectors for QRadar and SCIM, plus an improved ISAM Connector that does not require special jar files. Plus with the web moving towards *aaS via REST services, the JSON handling is invaluable. I often convert XML to JSON just to make handling easier, and then back to XML for the response :)Eddie Hartmanhttps://www.blogger.com/profile/12264507239868838185noreply@blogger.comtag:blogger.com,1999:blog-4476863800158400170.post-76698861290530224312014-10-23T08:53:55.011+02:002014-10-23T08:53:55.011+02:00Is there a way to make the parser interpret select...Is there a way to make the parser interpret select attributes as single element arrays? <br /><br />The RestService I am with (or against :-P) expects arrays at certain points (a membership should have an array of members) which creates a problem since sometimes the membership only have one member, and the toJSON() method parses them as single entry attributes.Anonymoushttps://www.blogger.com/profile/01601570233357804786noreply@blogger.comtag:blogger.com,1999:blog-4476863800158400170.post-27973541356513097152014-09-05T13:38:26.384+02:002014-09-05T13:38:26.384+02:00Thank you Eddie! 7.1 is good news though, since we...Thank you Eddie! 7.1 is good news though, since we also run a 7.1.1 installation, just not for this project. Gives me more arguments to upgrade the project I work with.Hertahttps://www.blogger.com/profile/01431995417137606295noreply@blogger.comtag:blogger.com,1999:blog-4476863800158400170.post-6540205857051536422014-09-05T13:14:18.658+02:002014-09-05T13:14:18.658+02:00@Herta Unfortunately there is no JSON functionalit...@Herta Unfortunately there is no JSON functionality in TDI 7.0. The JSON Parser is first available in 7.1 Fixpack 8. You could always try to script your own toJson() function. For flat entries it should not be too challenging - if you're comfortable with Javascript.<br /><br />You could also ask this question in the TDI forum to see if anyone out there has done this already.<br /><br />https:Eddie Hartmanhttps://www.blogger.com/profile/12264507239868838185noreply@blogger.comtag:blogger.com,1999:blog-4476863800158400170.post-10042635419599493532014-09-05T12:11:02.871+02:002014-09-05T12:11:02.871+02:00What would be the preferred way to convert an Entr...What would be the preferred way to convert an Entry object into JSON if you'r still working with TDI 7.0? If I'm not mistaking, the toJSON method was added in 7.2.Hertahttps://www.blogger.com/profile/01431995417137606295noreply@blogger.com