IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only

Trouble using gateway service for flatfiles

  • 1.  Trouble using gateway service for flatfiles

    Posted 08/28/03 01:34 AM

    webMethods support gave us a hand in fixing this. After importing java.io.InputStream and java.io.BufferedInputStream, the following java solves the problem:

    IDataCursor idc = pipeline.getCursor();

    if ( idc.first(“ffdata”) )
    {
    //Create BufferedInputStream from inbound InputStream
    BufferedInputStream bis = new BufferedInputStream( (InputStream)idc.getValue() );

    //Insert bufferedInputStream back into pipeline
    idc.last();
    idc.insertAfter(“bufferedIS”, bis);
    }

    // Clean up IData cursors
    idc.destroy();


    #Integration-Server-and-ESB
    #B2B-Integration
    #webMethods