Use the below code to get the NS and loop over “nodedata/rec_fields”, within the loop use “pub.list:appendToStringList” to populate the stringList which will return “field names”
IDataCursor ic = pipeline.getCursor();
String strName = IDataUtil.getString(ic, "nsName");
if (strName == null) {
throw new ServiceException("Missing required param 'nsName'");
}
NSName nsname = NSName.create(strName);
IData data = NSNodeHelper.getNodeInfo(nsname);
ic.insertAfter("nodedata", data);
Let me know if you are unable to follow instructions or not make it work.
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services