Reamon, you are right. It is just snippet and complete code which I used is given below.
IDataCursor idcPipeline = pipeline.getCursor();
String dbServer = null;
String dbUserId = null;
String dbPasswd = null;
String dbName = null;
String dbPort = null;
String proName = null;
String xmldata = null;
String table_name = null;
InputStream stream = null;
boolean cat_flag = true;
CLOB clob = null;
if (idcPipeline.first(“stream”))
{
stream = (InputStream)idcPipeline.getValue();
}
else
{ throw new ServiceException("No Input 'stream' ");
}
try
{
conn=getConnection123(dbServer , dbUserId, dbPasswd ,dbPort,dbName);
clob = CLOB.createTemporary(conn, true, CLOB.DURATION_SESSION);
clob.open(CLOB.MODE_READWRITE);
Writer out = clob.getCharacterOutputStream();
out.write(stream);
out.flush();
out.close();
}
catch(Exception e)
{
throw new ServiceException(“Error occured”);
}
---------------------------------------------------------------
and the following compilation error is found with the above code.
----------------------------------------------------------------
[FONT=Times New Roman][SIZE=3]…/IntegrationServer/packages/myTest /code/source/test/util.java :424: cannot find symbol
symbol : method write(java.io.InputStream)
location: class java.io.Writer
out.write(stream);
^
Note:
…/IntegrationServer/packages/myTest /code/source/test/util.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
From the error message I understand that the method write() is used incorrectly. [/size][/font]
#webMethods#Flow-and-Java-services#Integration-Server-and-ESB