We had the same problem and authored our own or modified PSUtilities
IDataCursor pipelineCursor = null;
try
{
pipelineCursor = pipeline.getCursor();
String directory = IDataUtil.getString( pipelineCursor, “directory” );
String filename = IDataUtil.getString( pipelineCursor, “filename” );
String content = IDataUtil.getString( pipelineCursor, “content” );
if(directory == null)
{
throw new ServiceException("Input parameter \'directory\' not found");
}
if(filename == null)
{
throw new ServiceException("Input parameter \'filename\' not found");
}
if(content == null)
{
throw new ServiceException("Input parameter \'content\' not found");
}
String sep = System.getProperty("file.separator");
BufferedWriter out = new BufferedWriter(new FileWriter(directory + sep + filename));
out.write(content);
out.close();
}
catch(IOException ioex)
{
throw new ServiceException(ioex.toString());
}
catch(Exception e)
{
throw new ServiceException(e.toString());
}
finally
{
pipelineCursor.destroy();
}
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods