package customization.aerovantix.retrieve; import wt.method.*; import wt.content.*; import java.io.File; /** * * @author antonio.villanueva */ public class AerovantixServerCommands implements RemoteAccess{ /** Creates a new instance of RMSTest */ public AerovantixServerCommands() { } public static void writeOutDocumentContent(ApplicationData data, String path) { String filename=data.getFileName(); try { ContentServerHelper.service.writeContentStream(data,path+File.separator+filename); } catch (Exception e) { System.out.println("Error exporting file for Aerovantix request"); } } And that would be invoked like this from you client: //export file //get Content object ContentHolder holder=ContentHelper.service.getContents(doc); ApplicationData data=(ApplicationData)ContentHelper.service.getPrimary(doc); //build server call to export content file String path=indexerProperties.getString("outputPath"); Class[] args={ApplicationData.class,String.class}; Object[] args2={data,path}; //export file rms.invoke("writeOutDocumentContent","customization.aerovantix.retrieve.AerovantixServerCommands", null,args,args2);