You can write a java service to do the same… Here is a sample…
// pipeline
IDataCursor pipelineCursor = pipeline.getCursor();
String fileName = IDataUtil.getString( pipelineCursor, “fileName” );
String fileDir = IDataUtil.getString( pipelineCursor, “fileDir” );
String inputString = IDataUtil.getString( pipelineCursor, “inputString” );
String zipFileName = IDataUtil.getString( pipelineCursor, “zipFileName” );
String zipFileDir = IDataUtil.getString( pipelineCursor, “zipFileDir” );
pipelineCursor.destroy();
// pipeline
zipFileName = zipFileDir+zipFileName;
byte buf = new byte[1024];
try {
ZipOutputStream out = new ZipOutputStream(new FileOutputStream(zipFileName));
// Compress the files
FileInputStream in = new FileInputStream(fileDir+fileName);
out.putNextEntry(new ZipEntry(fileName));
// Transfer bytes from the file to the ZIP file
out.write(inputString.getBytes());
// Complete the entry
out.closeEntry();
in.close();
// Complete the ZIP file
out.close();
} catch (IOException e) {
}
HTH
Senthil
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services