Hi,
I’d like to send flat file (text or xml, doesn’t matter now) to IS service via FTP but I have problems with extracting the content of a file. I’m definitely sure that the Receiver service is really invoked by FTP client, because I execute savePipelineToFile at the very start of it and I can see dumped pipeline each time. It looks like this:
<idataxmlcoder>
<record>
<value>dump.txt</value>
</record>
</idataxmlcoder>
As you see there is no trace of either node (text/xml), contentStream (text/plain) or ffdata (application/x-wmflatfile) object. I wrote very simple Java service to be sure of the pipeline content:
IDataHashCursor pipc = pipeline.getHashCursor();
pipc.first();
String content = (String) pipc.getKey();
Object obiekt = pipc.getValue();
pipc.insertAfter(“content”, content);
When I execute above service at the start of the Receiver service, I get the name of object with data (e.g. ffdata or node), but the value of this object is always null.
Now the question: why can’t I get the content of a file? I probably miss something very obvious.
I’d appreciate any help
Marcin
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods