Hey Satya ,
Here is sample code which you can make use of , you need to customize it according to your requirement.
public static final void getAuditPropertyPerService(IData pipeline)
throws ServiceException {
IDataCursor pipelineCursor = pipeline.getCursor();
String serviceName = IDataUtil.getString( pipelineCursor, "serviceName");
NSName localNSName=NSName.create(serviceName);
NSService localNSService=Namespace.current().getService(localNSName);
int auditEnable=localNSService.getAuditOption(); //Give the audit enable property value
AuditSettings as;
as=localNSService.getAuditSettings(); // to get the logOn and Include Pipeline property of the audit property
IData asData = IDataFactory.create();
asData=as.getAsData();
// pipeline
IDataCursor pipelineCursor_1 = pipeline.getCursor();
IDataUtil.put( pipelineCursor_1, "asData", asData );
pipelineCursor_1.destroy();
}
#Integration-Server-and-ESB#webMethods#Flow-and-Java-services