I am using pub.client.ldap.search service to fetch records. Records are coming, there is no issue in data, but problem is in output. In this service result doc is there and records are coming as children document of it, that is fine, but issue is, the name of children documents are not fixed, it dynamically genereated, so not getting how to map it to my
Thanks for your help.
We found a better way to do it.
After getting output of new search service, we converted it to xml string and then by using regular expression, we have replaced our dynamic document name to some fix name i.e.
“cn=XXXXXXX, out=users” is replaced by records and after that we again converted it to document and now we can see Results is the top level document and inside that we have records list of all the records. This is the same output we used to get from our old search service, so it solved our problem…
I had the same problem with my results and tried out both suggestions. The xml was an issue because of our data. The java seems to be the right idea, yet it is not looping over the results. I have a document called results as my input and an object called ldap as the output (also tried an object list). Both return ldap as a document with the data from the first record only. Any advice/suggestions would be greatly appreciated.