hi guys,
i have tried to create a file polling service (txt file), below is my finding.
for performance and i/o overhead consideration, option 1 is preferable.
option 1:
- create a service input named “ffdata” (without quote) as object.
- write the flow service as below.
pub.io:streamToBytes
pub.string:bytesToString
pub.flow:debugLog
or
option 2:
- write the flow service as below.
pub.flow:getTransportInfo
pub.file:getFile (base on filepolling->filename)
pub.io:streamToBytes
pub.string:bytesToString
pub.flow:debugLog
ssagar, check the input type you have defined for “ffdata”, it must be defined as object.
if you are receiving xml file, then you will need to define a “node” object for your input instead.
you can always use pub.flow:tracePipeline at the begining of the flow service to know what kind of input pipeline you will received.
tanveer, your error description is too brief, for development, it’s advisable to turn your debug log level to more details
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services