Hi All,
In case anyone was following this I found my answer. I see you need to use the getGlobalObjectNames method and use a vector with the static field value of the class you want to retrieve. Hope this helps someone in the future too: Here is how you can iterate through the agents and print them out.
SmApiResult result = new SmApiResult();
SmPolicyApi policyapi = new SmPolicyApiImpl(mySession);
Vector vector = new Vector(15);
result = policyapi.getGlobalObjectNames("Agents", vector);
System.out.println("Result is success? " + result);
System.out.println("Vector is" + vector.size();
Iterator i = vector.iterator();
while (i.hasNext()) {
System.out.println(i.next());
}
Thanks,
Adam