Is there a way to pass in a file to an IS from an External Java client.
I am trying using the following code but I can only the IS only recognises String values. The ffdata input is defined as an Object of type BufferedInputStream when the pipeline is viewed following a File Poller Port call to trigger the service.
[SIZE=1] Object iDataRaw = new Object[2][2];
iDataRaw[0][0] = “source”;
iDataRaw[0][1] = “Java External Client”;
iDataRaw[1][0] = “ffdata”;
iDataRaw[1][1] = new BufferedInputStream(new FileInputStream (“c://temp//myfile.txt”));
IData inputPipeline = IDataFactory.create(iDataRaw);[/size]
TestClient client = new TestClient(
“7613sis0001.stbc2.jstest2.net:14000”, “”,
“”);
IData outputPipeline = client.invoke(“Package.test”, “aSimpleService”,
inputPipeline);
The example is based on some sample code psted in the forums and works fine with Strings - any pointers in the right direction would be useful.
thanks