Feb 16, 2011 at 4:50 PM
Edited Feb 16, 2011 at 4:52 PM
I am looking to retrieve BasicDemographicInfo from the GetThingsResponse object. I see in the debug logs that BasicDemoGraphicInfo is returned in the response. However, I do not get the data in the thing object. Here is the code I am using.
List<Thing> things = gtResponse.getGroup().get(0).getThing();
Iterator<Thing> iterator = things.iterator();
Thing thing = iterator.next();
thing.getData(); --------------> This returns null.
should I use thing.getDataXml(); instead? Can you post some sample code as to how I can access the Basic object from the dataxml? Finally, I also had a question on the version of the GetThingsRequest that I should use - should I use GetThings3Request
Please let me know when you get a chance.