I did include the java writeToFile… however I do not think this is the problem because
Our trading partner is sending hex 205 (a non printable character) as the delimiter
Web Methods doesn’t seem to handle it.
This file is ftp’d over from another system.
The hex 205 is replaced with a carriage return and a copy is put in our file system.
that is why it always works when I redrop the file.
Is there some way for webMethods to handle the hex 205
Thanks in advance
C Hill
===========writeToFile==============================
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();
}
#B2B-Integration#webMethods#Integration-Server-and-ESB